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/intern/util.c | |
parent | 6d6f5bbc1a79c2ed2fb8ce84dd4fc23e4763d926 (diff) |
misc warning fixes and one fix for a big in curve allocation
Diffstat (limited to 'source/blender/blenlib/intern/util.c')
-rw-r--r-- | source/blender/blenlib/intern/util.c | 10 |
1 files changed, 5 insertions, 5 deletions
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); |