]> granicus.if.org Git - json-c/commit
Add an explicit cast to double to squash a -Wimplicit-int-float-conversion warning.
authorEric Haszlakiewicz <erh+git@nimenees.com>
Mon, 12 Aug 2019 00:30:45 +0000 (00:30 +0000)
committerEric Haszlakiewicz <erh+git@nimenees.com>
Mon, 12 Aug 2019 00:30:45 +0000 (00:30 +0000)
commitd0b87ee87b282e9b91a1af924050e217b0b2ae8b
tree60a8f1f62cd87f56c449541ca61ac81efb7f7c97
parenta91aa5e35d0e2b6a5ed00ad6ae870d4918511ff0
Add an explicit cast to double to squash a -Wimplicit-int-float-conversion warning.
Though we will no longer be comparing exactly against INT64_MAX, this is ok
because any value of that magnitude stored in a double will *also* have been
rounded up, so the comparison will work appropriately.
json_object.c