Commit dd9dc4e9 authored by marko's avatar marko

branches/zip: ut_raw_to_hex(): Fix a compiler warning that was introduced

in r1960.
parent d6df021d
...@@ -6,6 +6,8 @@ Memory primitives ...@@ -6,6 +6,8 @@ Memory primitives
Created 5/30/1994 Heikki Tuuri Created 5/30/1994 Heikki Tuuri
************************************************************************/ ************************************************************************/
#include "ut0byte.h"
UNIV_INLINE UNIV_INLINE
void* void*
ut_memcpy(void* dest, const void* sour, ulint n) ut_memcpy(void* dest, const void* sour, ulint n)
...@@ -166,7 +168,7 @@ ut_raw_to_hex( ...@@ -166,7 +168,7 @@ ut_raw_to_hex(
rawc++; \ rawc++; \
} }
if ((ullint) hex % 2 == 0) { if (ut_align_offset(hex, 2) == 0) {
LOOP_READ_BYTES( LOOP_READ_BYTES(
*(uint16*) hex = hex_map[*rawc] *(uint16*) hex = hex_map[*rawc]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment