diff options
author | Dave Beckett <dave@dajobe.org> | 2008-06-15 08:07:43 +0000 |
---|---|---|
committer | Dave Beckett <dave@dajobe.org> | 2008-06-15 08:07:43 +0000 |
commit | 02c790cbd959868e93b2d8e032c5005d55e89fc8 (patch) | |
tree | 60fc077a1b4d2a50f20117cf48142e10e2866896 | |
parent | be8d8e8e418fadb9d2ced69859f9f1dc499c9fa5 (diff) | |
download | raptor-02c790cbd959868e93b2d8e032c5005d55e89fc8.tar.gz |
casts
-rw-r--r-- | src/raptor_nfc_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/raptor_nfc_test.c b/src/raptor_nfc_test.c index 8bca10c3..9728b3bb 100644 --- a/src/raptor_nfc_test.c +++ b/src/raptor_nfc_test.c @@ -82,11 +82,11 @@ decode_to_utf8(unsigned char *utf8_string, size_t utf8_string_length, fprintf(stderr, "U+%04lX ", c); #endif - p=(unsigned char*)endptr; + p=(const char*)endptr; u+= raptor_unicode_char_to_utf8(c, u); - if((u-utf8_string) > utf8_string_length) { + if((u-utf8_string) > (int)utf8_string_length) { fprintf(stderr, "decode_to_utf8 overwote utf8_string buffer at byte %d\n", (u-utf8_string)); |