Making repo public * Add licensing details for limbo directory Create readme.md for disvm-exec project Fix code analysis violations/warnings * Update version to 'beta' - public release
Showing the changes to src/vm/utf8.cpp (1 of 8 files). Show all
Unified · Split
| @@ -95,7 +95,7 @@ std::size_t disvm::runtime::utf8::decode(const uint8_t *str, rune_t &codepoint) · 94 unmodified lines | ||
| 95 | 95 | curr++; |
| 96 | 96 | state = utf8::decode_step(state, codepoint, c); |
| 97 | 97 | if (state == utf8::decode_state_t::accept) |
| 98 | − return (curr - begin); | |
| 98 | + return static_cast<std::size_t>(curr - begin); | |
| 99 | 99 | } |
| 100 | 100 | |
| 101 | 101 | // Empty string |