Skip to content

Commit

Permalink
Explicitly cast to uint32_t in test
Browse files Browse the repository at this point in the history
Explicitly casting to `uint32_t` prevents a template resolution
ambiguity on 32-bit platforms.

Fixes: #337
  • Loading branch information
Gabriel Schulhof committed Sep 13, 2018
1 parent 622ffae commit 186c492
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/object/object.cc
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ Value CreateObjectUsingMagic(const CallbackInfo& info) {
obj[std::string("s_true")] = true;
obj[std::string("s_false")] = false;
obj["0"] = 0;
obj[42] = 120;
obj[(uint32_t)42] = 120;
obj["0.0f"] = 0.0f;
obj["0.0"] = 0.0;
obj["-1"] = -1;
Expand Down

0 comments on commit 186c492

Please sign in to comment.