Skip to content

Commit

Permalink
Fix typo causing segfault in utf16 code
Browse files Browse the repository at this point in the history
Fixes a typo in 856c4dd
  • Loading branch information
samcv committed Nov 27, 2018
1 parent 4228ad1 commit c9f4863
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/strings/utf16.c
Expand Up @@ -195,8 +195,8 @@ MVMString * MVM_string_utf16le_decode(MVMThreadContext *tc,
return MVM_string_utf16_decode_main(tc, result_type, (MVMuint8*)utf16_chars, bytes, UTF16_DECODE_LITTLE_ENDIAN);
}
MVMString * MVM_string_utf16_decode(MVMThreadContext *tc,
const MVMObject *result_type, char *_utf16_chars, size_t bytes) {
MVMuint8 *utf16_chars = (MVMuint8*)utf16_chars;
const MVMObject *result_type, char *utf16_chars_in, size_t bytes) {
MVMuint8 *utf16_chars = (MVMuint8*)utf16_chars_in;
#ifdef MVM_BIGENDIAN
int mode = UTF16_DECODE_BIG_ENDIAN;
#else
Expand Down

0 comments on commit c9f4863

Please sign in to comment.