Skip to content

Commit 2ad47a8

Browse files
Gabriel Schulhofmhdawson
authored andcommitted
test: explicitly cast to uint32_t in test
Explicitly casting to `uint32_t` prevents a template resolution ambiguity on 32-bit platforms. Fixes: #337 PR-URL: #341 Fixes: #337 Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Nicola Del Gobbo <[email protected]>
1 parent 79ee838 commit 2ad47a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/object/object.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ Value CreateObjectUsingMagic(const CallbackInfo& info) {
126126
obj[std::string("s_true")] = true;
127127
obj[std::string("s_false")] = false;
128128
obj["0"] = 0;
129-
obj[42] = 120;
129+
obj[(uint32_t)42] = 120;
130130
obj["0.0f"] = 0.0f;
131131
obj["0.0"] = 0.0;
132132
obj["-1"] = -1;

0 commit comments

Comments
 (0)