| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -586,7 +586,9 @@ static void GetStringWidth(const FunctionCallbackInfo<Value>& args) { | |||
| 586 | 586 | TwoByteValue value(env->isolate(), args[0]); | |
| 587 | 587 | // reinterpret_cast is required by windows to compile | |
| 588 | 588 | UChar* str = reinterpret_cast<UChar*>(*value); | |
| 589 | - UChar32 c; | ||
| 589 | + static_assert(sizeof(*str) == sizeof(**value), | ||
| 590 | + "sizeof(*str) == sizeof(**value)"); | ||
| 591 | + UChar32 c = 0; | ||
| 590 | 592 | UChar32 p; | |
| 591 | 593 | size_t n = 0; | |
| 592 | 594 | uint32_t width = 0; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments