aboutsummaryrefslogtreecommitdiff
path: root/lib/std/math/modf.zig
diff options
context:
space:
mode:
Diffstat (limited to 'lib/std/math/modf.zig')
-rw-r--r--lib/std/math/modf.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/math/modf.zig b/lib/std/math/modf.zig
index 6fd89e3dda..5ab5318a79 100644
--- a/lib/std/math/modf.zig
+++ b/lib/std/math/modf.zig
@@ -24,7 +24,7 @@ pub const modf64_result = modf_result(f64);
/// Special Cases:
/// - modf(+-inf) = +-inf, nan
/// - modf(nan) = nan, nan
-pub fn modf(x: var) modf_result(@TypeOf(x)) {
+pub fn modf(x: anytype) modf_result(@TypeOf(x)) {
const T = @TypeOf(x);
return switch (T) {
f32 => modf32(x),