diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-12-13 18:06:02 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-12-13 18:06:02 +0300 |
commit | f15956356c7706c93152f4267cd1cea24b2c9e30 (patch) | |
tree | 0b91608e19ce81285823ba8559cfdc118ee220e8 /source/blender/blenlib | |
parent | 6d6f5bbc1a79c2ed2fb8ce84dd4fc23e4763d926 (diff) |
misc warning fixes and one fix for a big in curve allocation
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/BLI_blenlib.h | 2 | ||||
-rw-r--r-- | source/blender/blenlib/intern/util.c | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/blenlib/BLI_blenlib.h b/source/blender/blenlib/BLI_blenlib.h index 57248fb1d68..bcb51fa1393 100644 --- a/source/blender/blenlib/BLI_blenlib.h +++ b/source/blender/blenlib/BLI_blenlib.h @@ -368,7 +368,7 @@ void BLI_setInterruptCallBack(int (*f)(void)); char *BLI_strcasestr(const char *s, const char *find); int BLI_strcasecmp(const char *s1, const char *s2); int BLI_strncasecmp(const char *s1, const char *s2, int n); -void BLI_timestr(double time, char *str); +void BLI_timestr(double _time, char *str); /* time var is global */ /** * Trick to address 32 GB with an int (only for malloced pointers) diff --git a/source/blender/blenlib/intern/util.c b/source/blender/blenlib/intern/util.c index dc2e53483db..7c94cc80847 100644 --- a/source/blender/blenlib/intern/util.c +++ b/source/blender/blenlib/intern/util.c @@ -1621,13 +1621,13 @@ void BLI_string_to_utf8(char *original, char *utf_8, char *code) } #endif // WITH_ICONV -void BLI_timestr(double time, char *str) +void BLI_timestr(double _time, char *str) { /* format 00:00:00.00 (hr:min:sec) string has to be 12 long */ - int hr= ((int) time) / (60*60); - int min= ( ((int) time) / 60 ) % 60; - int sec= ((int) (time)) % 60; - int hun= ((int) (time * 100.0)) % 100; + int hr= ( (int) _time) / (60*60); + int min= (((int) _time) / 60 ) % 60; + int sec= ( (int) (_time)) % 60; + int hun= ( (int) (_time * 100.0)) % 100; if (hr) { sprintf(str, "%.2d:%.2d:%.2d.%.2d",hr,min,sec,hun); |