diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2007-06-24 10:38:58 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2007-06-24 10:38:58 +0000 |
commit | 1daa2ff9a9874f452f733584f7f0a21053add244 (patch) | |
tree | 1a8df947bf2ce2182bdbe8377d1ec2ab9cb342b8 /src/input | |
parent | ff835de85e45a77c810d0f8dc7916ff0be677545 (diff) | |
download | libhubbub-1daa2ff9a9874f452f733584f7f0a21053add244.tar.gz libhubbub-1daa2ff9a9874f452f733584f7f0a21053add244.tar.bz2 |
Silence cast alignment warnings
svn path=/trunk/hubbub/; revision=3363
Diffstat (limited to 'src/input')
-rw-r--r-- | src/input/utf16_stream.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/input/utf16_stream.c b/src/input/utf16_stream.c index 05ba5d3..1d19a7e 100644 --- a/src/input/utf16_stream.c +++ b/src/input/utf16_stream.c @@ -376,7 +376,8 @@ uint32_t hubbub_utf16stream_cur_pos(hubbub_inputstream *stream, */ void hubbub_utf16stream_lowercase(hubbub_inputstream *stream) { - uint16_t *buf = (uint16_t *) (stream->buffer + stream->cursor); + uint16_t *buf = (uint16_t *) + ((void *) (stream->buffer + stream->cursor)); if (0x0041 <= buf[0] && buf[0] <= 0x005B) buf[0] += 0x0020; @@ -389,7 +390,8 @@ void hubbub_utf16stream_lowercase(hubbub_inputstream *stream) */ void hubbub_utf16stream_uppercase(hubbub_inputstream *stream) { - uint16_t *buf = (uint16_t *) (stream->buffer + stream->cursor); + uint16_t *buf = (uint16_t *) + ((void *) (stream->buffer + stream->cursor)); if (0x0061 <= buf[0] && buf[0] <= 0x007B) buf[0] -= 0x0020; @@ -472,8 +474,8 @@ int hubbub_utf16stream_compare_range_ci(hubbub_inputstream *stream, return 0; do { - c1 = *((uint16_t *) range1); - c2 = *((uint16_t *) range2); + c1 = *((uint16_t *) (void *) range1); + c2 = *((uint16_t *) (void *) range2); if ((0x0041 <= c1 && c1 <= 0x005B)) c1 |= 0x0020; @@ -530,7 +532,7 @@ int hubbub_utf16stream_compare_range_ascii(hubbub_inputstream *stream, return 1; /* arbitrary */ do { - c1 = *((uint16_t *) range); + c1 = *((uint16_t *) (void *) range); c2 = *data; range += 2; |