From ccb580f95db5024962ff91ef522143646a3d1835 Mon Sep 17 00:00:00 2001 From: lording Date: Thu, 22 Jun 2023 08:23:22 +0000 Subject: [PATCH] Fix broken builtin name in exercise 96 --- exercises/096_memory_allocation.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/096_memory_allocation.zig b/exercises/096_memory_allocation.zig index 8e348be..7538ba4 100644 --- a/exercises/096_memory_allocation.zig +++ b/exercises/096_memory_allocation.zig @@ -45,7 +45,7 @@ fn runningAverage(arr: []const f64, avg: []f64) void { for (0.., arr) |index, val| { sum += val; - avg[index] = sum / @intToFloat(f64, index + 1); + avg[index] = sum / @floatFromInt(f64, index + 1); } }