]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix overflow warnings (?)
authorRyan Norton <wxprojects@comcast.net>
Sun, 5 Dec 2004 20:52:23 +0000 (20:52 +0000)
committerRyan Norton <wxprojects@comcast.net>
Sun, 5 Dec 2004 20:52:23 +0000 (20:52 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30869 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/extended.c

index eb4089e4abd11ba10c5ef065a5691ba5b2f14675..1e9b9c7b8e315514e78c87d8eb9f2cddf1b012b1 100644 (file)
@@ -81,7 +81,7 @@
 # define FloatToUnsigned(f)    ((wxUint32)(f))
 # define UnsignedToFloat(u)    ((wxFloat64)(u))
 #else /*applec*/
-# define FloatToUnsigned(f)    ((wxUint32)((((wxInt32)((f) - 2147483648.0)) + 2147483647L) + 1))
+# define FloatToUnsigned(f)    ((wxUint32)(((wxInt32)((f) - 2147483648.0)) + 2147483647L) + 1)
 # define UnsignedToFloat(u)    (((wxFloat64)((wxInt32)((u) - 2147483647L - 1))) + 2147483648.0)
 #endif /*applec*/