Skip to content

Commit e24762b

Browse files
committed
fix compile errors
1 parent 56b7655 commit e24762b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/compiler/aro/aro/Preprocessor.zig

+1-1
Original file line numberDiff line numberDiff line change
@@ -1745,7 +1745,7 @@ fn expandFuncMacro(
17451745
}
17461746
if (!pp.comp.langopts.standard.atLeast(.c23)) break :res not_found;
17471747

1748-
const attrs = std.StaticStringMap([]const u8).initComptime(.{
1748+
const attrs = comptime std.StaticStringMap([]const u8).initComptime(.{
17491749
.{ "deprecated", "201904L\n" },
17501750
.{ "fallthrough", "201904L\n" },
17511751
.{ "maybe_unused", "201904L\n" },

lib/std/static_string_map.zig

+2-2
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ pub fn StaticStringMapAdvanced(
164164
const testing = std.testing;
165165

166166
test "comptime only value" {
167-
const map = StaticStringMap(type).initComptime(.{
167+
const map = comptime StaticStringMap(type).initComptime(.{
168168
.{ "a", struct {
169169
pub const foo = 1;
170170
} },
@@ -183,7 +183,7 @@ test "comptime only value" {
183183
}
184184

185185
test "get/has with edge cases" {
186-
const map = StaticStringMap(u32).initComptime(&.{
186+
const map = comptime StaticStringMap(u32).initComptime(&.{
187187
.{ "a", 0 },
188188
.{ "ab", 3 },
189189
.{ "abc", 0 },

0 commit comments

Comments
 (0)