Skip to content

Commit

Permalink
[MERGE #3437 @MSLaguana] Fixes #3430 overzealous type cast
Browse files Browse the repository at this point in the history
Merge pull request #3437 from MSLaguana:fixTestCast

The lack of a `const` caused complaints with more stringent compiler flags, as pointed out in #3430
  • Loading branch information
MSLaguana committed Jul 31, 2017
2 parents 8a61170 + 6453910 commit 6aeb615
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/NativeTests/JsRTApiTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2173,7 +2173,7 @@ namespace JsRTApiTest
size_t written = 0;
char buf[10] = {0};
JsValueRef value;
REQUIRE(JsCreateStringUtf16(reinterpret_cast<uint16_t*>(_u("0\x10\x80\xa9\uabcd\U000104377")), 8, &value) == JsNoError);
REQUIRE(JsCreateStringUtf16(reinterpret_cast<const uint16_t*>(_u("0\x10\x80\xa9\uabcd\U000104377")), 8, &value) == JsNoError);
REQUIRE(JsCopyStringOneByte(value, 0, -1, nullptr, &written) == JsNoError);
CHECK(written == 8);
buf[written] = '\xff';
Expand Down

0 comments on commit 6aeb615

Please sign in to comment.