| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 0fc975d commit cccd3a3
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -232,7 +232,9 @@ static napi_value TestLargeLatin1(napi_env env, napi_callback_info info) { | |||
| 232 | 232 | static napi_value TestLargeUtf16(napi_env env, napi_callback_info info) { | |
| 233 | 233 | napi_value output; | |
| 234 | 234 | if (SIZE_MAX > INT_MAX) { | |
| 235 | - NAPI_CALL(env, napi_create_string_utf16(env, "", ((size_t)INT_MAX) + 1, &output)); | ||
| 235 | + NAPI_CALL(env, napi_create_string_utf16(env, | ||
| 236 | + ((const char16_t*)""), | ||
| 237 | + ((size_t)INT_MAX) + 1, &output)); | ||
| 236 | 238 | } else { | |
| 237 | 239 | // just throw the expected error as there is nothing to test | |
| 238 | 240 | // in this case since we can't overflow | |
| Back | FazBrowse Home | New Git URL |
0 commit comments