mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 04:10:09 +01:00
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 <jfonseca@vmware.com>
This commit is contained in:
parent
45b8f620a5
commit
e89cf59c27
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue