]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
hopefully fix llrint
authordivverent <divverent@61c419a2-8eb2-4b30-bcec-8cead039b335>
Tue, 14 Apr 2009 06:47:48 +0000 (06:47 +0000)
committerdivverent <divverent@61c419a2-8eb2-4b30-bcec-8cead039b335>
Tue, 14 Apr 2009 06:47:48 +0000 (06:47 +0000)
git-svn-id: svn://svn.icculus.org/netradiant/trunk@320 61c419a2-8eb2-4b30-bcec-8cead039b335

libs/math/vector.h

index 23f910618b5cb86598b2cf0b1ac4982b5605143d..57022dbb516354a157c9d043a0e6f8bcc8f40b0a 100644 (file)
@@ -42,11 +42,21 @@ inline int lrint (double flt)
        return i;
 } 
 
+inline __int64 llrint(double f)
+{
+  return static_cast<__int64>(f + 0.5);
+}
+
 #elif defined(__FreeBSD__)
 
-inline int lrint(double f)
+inline long lrint(double f)
+{
+  return static_cast<long>(f + 0.5);
+}
+
+inline long long llrint(double f)
 {
-  return static_cast<int>(f + 0.5);
+  return static_cast<long long>(f + 0.5);
 }
 
 #elif defined(__GNUC__)