fixing trunc for real now

(hopefully... getting sleepy)
This commit is contained in:
Alex Shinn 2009-07-14 01:45:16 +09:00
parent e780c122c0
commit 4ba0705f05

View file

@ -111,7 +111,7 @@
#define strcasecmp cistrcmp
#define strncasecmp cistrncmp
#define round(x) floor((x)+0.5)
#define trunc(x) ((x)-((x)-round(x)))
#define trunc(x) floor((x)+0.5*(((x)<0)?1:0))
#else