libgrapheme

Freestanding C library for unicode string handling
git clone https://git.sinitax.com/suckless/libgrapheme
Log | Files | Refs | README | LICENSE | sfeed.txt

commit 807de4e2616ad5e9056c461cee00a220ef178b4a
parent d2fe0fa3511539dcb36fe6c678bd14f92d0909d1
Author: Laslo Hunhold <dev@frign.de>
Date:   Sat,  8 Jan 2022 16:50:45 +0100

benchmark/util.c: Explicitly convert to double

Signed-off-by: Laslo Hunhold <dev@frign.de>

Diffstat:
Mbenchmark/util.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/benchmark/util.c b/benchmark/util.c @@ -59,7 +59,8 @@ run_benchmark(void (*func)(const void *), const void *payload, } } clock_gettime(CLOCK_MONOTONIC, &end); - diff = time_diff(&start, &end) / num_iterations / units_per_iteration; + diff = time_diff(&start, &end) / (double)num_iterations / + (double)units_per_iteration; if (isnan(*baseline)) { *baseline = diff;