mirror of
https://github.com/ilyakooo0/Idris-dev.git
synced 2024-11-15 01:25:05 +03:00
Fix compilation error on floating point constants
This commit is contained in:
parent
17fb34a6f8
commit
f8db87355b
@ -20,8 +20,8 @@ void print_stats(const Stats * stats) {
|
||||
alloc_rate = (int)((double)(stats->allocations) / mut_sec);
|
||||
}
|
||||
|
||||
double gc_percent = 0.0d;
|
||||
double productivity = 0.0d;
|
||||
double gc_percent = 0.0;
|
||||
double productivity = 0.0;
|
||||
if (total > 0) {
|
||||
gc_percent = 100 * (double)stats->gc_time / (double)total;
|
||||
productivity = 100 * ((double)mut / (double)total);
|
||||
|
Loading…
Reference in New Issue
Block a user