Skip to content

Commit

Permalink
encoding.c: don't generate warnings in text_decoder_decode_string.
Browse files Browse the repository at this point in the history
  • Loading branch information
rhdunn committed Mar 30, 2017
1 parent 6a0b5e4 commit db31443
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libespeak-ng/encoding.c
Expand Up @@ -654,8 +654,8 @@ text_decoder_decode_string(espeak_ng_TEXT_DECODER *decoder,

decoder->get = enc->get;
decoder->codepage = enc->codepage;
decoder->current = string;
decoder->end = string + length;
decoder->current = (const uint8_t *)string;
decoder->end = (const uint8_t *)(string + length);
return ENS_OK;
}

Expand Down

0 comments on commit db31443

Please sign in to comment.