Skip to content
Browse files

Hack numbers to work correctly on 32 bit machines.

  • Loading branch information...
1 parent d32c2de commit 9084f0cdaf707b3d696a699f6dff041931337f0b @ltratt committed Mar 20, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Stdlib/Time.cv
View
4 lib/Stdlib/Time.cv
@@ -91,15 +91,15 @@ class Instant:
func -(self, o):
if self.nsec - o.nsec < 0:
- return mk_timespec(self.sec - o.sec - 1, 1000000000 + (self.nsec - o.nsec))
+ return mk_timespec(self.sec - o.sec - 1, (100000*10000) + (self.nsec - o.nsec))
else:
return mk_timespec(self.sec - o.sec, self.nsec - o.nsec)
func as_float(self):
- return self.sec + (self.nsec / 1000000000)
+ return self.sec + (self.nsec / (100000*10000))

0 comments on commit 9084f0c

Please sign in to comment.
Something went wrong with that request. Please try again.