Skip to content

Commit

Permalink
upgrade to 0.13.0-dev.75+5c9eb4081
Browse files Browse the repository at this point in the history
  • Loading branch information
lassade committed May 10, 2024
1 parent 5cb4b15 commit 97229f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Transpiler.zig
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const KeywordsLUT = std.ComptimeStringMap(void, .{
.{ "volatile", "__volatile" },
});

const PrimitivesTypeLUT = std.ComptimeStringMap([]const u8, .{
const PrimitivesTypeLUT = std.StaticStringMap([]const u8).initComptime(.{
.{ "bool", "bool" },
.{ "char", "u8" },
.{ "signed char", "i8" },
Expand Down Expand Up @@ -96,7 +96,7 @@ const PrimitivesTypeLUT = std.ComptimeStringMap([]const u8, .{
.{ "std::string", "cpp.String" },
});

const TypeToByteSizeLUT = std.ComptimeStringMap(u32, .{
const TypeToByteSizeLUT = std.StaticStringMap(u32).initComptime(.{
.{ "bool", @sizeOf(bool) },
.{ "c_int", @sizeOf(c_int) },
.{ "c_long", @sizeOf(c_long) },
Expand All @@ -123,7 +123,7 @@ const TypeToByteSizeLUT = std.ComptimeStringMap(u32, .{
.{ "usize", @sizeOf(usize) },
});

const TypeToSignedLUT = std.ComptimeStringMap(bool, .{
const TypeToSignedLUT = std.StaticStringMap(bool).initComptime(.{
.{ "bool", false },
.{ "c_int", true },
.{ "c_long", true },
Expand Down

0 comments on commit 97229f5

Please sign in to comment.