diff options
author | Roland Scheidegger <[email protected]> | 2018-04-23 04:52:48 +0200 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2018-04-24 04:49:39 +0200 |
commit | e89cf59c27e4a66379f21ee0b574deaa078d0975 (patch) | |
tree | 07c7e4018fd88ca974368b54f2b5681fccbe41aa /src/gallium/auxiliary | |
parent | 45b8f620a545bcdb8a4942bafd505c9418f6d9f2 (diff) |
gallivm: (trivial) do division by 1000 with int64
Conversion to int can otherwise overflow if compile times are over
~71min. (Yes this can happen...)
Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_init.c b/src/gallium/auxiliary/gallivm/lp_bld_init.c index a9968649c06..800b2616c0d 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_init.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_init.c @@ -604,7 +604,7 @@ gallivm_compile_module(struct gallivm_state *gallivm) if (gallivm_debug & GALLIVM_DEBUG_PERF) { int64_t time_end = os_time_get(); - int time_msec = (int)(time_end - time_begin) / 1000; + int time_msec = (int)((time_end - time_begin) / 1000); assert(gallivm->module_name); debug_printf("optimizing module %s took %d msec\n", gallivm->module_name, time_msec); |