From 9dfe217be38289b0c9e662d1a0e7c0231bf42a7d Mon Sep 17 00:00:00 2001 From: Marc Tiehuis Date: Thu, 28 Sep 2017 19:15:06 +1300 Subject: Allow 128-bit hex float literals Closes #499. --- test/compile_errors.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/compile_errors.zig') diff --git a/test/compile_errors.zig b/test/compile_errors.zig index a8a4a96e8d..fc74cc1bf0 100644 --- a/test/compile_errors.zig +++ b/test/compile_errors.zig @@ -1901,14 +1901,14 @@ pub fn addCases(cases: &tests.CompileErrorContext) { cases.add("float literal too large error", \\comptime { - \\ const a = 0x1.0p1024; + \\ const a = 0x1.0p16384; \\} , ".tmp_source.zig:2:15: error: float literal out of range of any type"); cases.add("float literal too small error (denormal)", \\comptime { - \\ const a = 0x1.0p-1023; + \\ const a = 0x1.0p-16384; \\} , ".tmp_source.zig:2:15: error: float literal out of range of any type"); -- cgit v1.2.3