From 1ac46fac15953820948b77b94083828f84673641 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Fri, 10 Nov 2017 14:02:45 -0500 Subject: add a std lib test for reading and writing files * fix fstat wrong on darwin * move std.debug.global_allocator to std.debug.global_allocator_state and make it private * add std.debug.global_allocator as a pointer (to upgrade your zig code remove the '&') --- std/hash_map.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'std/hash_map.zig') diff --git a/std/hash_map.zig b/std/hash_map.zig index 582aa7ccaf..d124d7b573 100644 --- a/std/hash_map.zig +++ b/std/hash_map.zig @@ -232,7 +232,7 @@ pub fn HashMap(comptime K: type, comptime V: type, } test "basicHashMapTest" { - var map = HashMap(i32, i32, hash_i32, eql_i32).init(&debug.global_allocator); + var map = HashMap(i32, i32, hash_i32, eql_i32).init(debug.global_allocator); defer map.deinit(); assert(%%map.put(1, 11) == null); -- cgit v1.2.3