git-svn: trunk@3355
Török Edvin authored on 2007/11/03 08:26:30... | ... |
@@ -52,8 +52,8 @@ |
52 | 52 |
#include "mbox.h" |
53 | 53 |
#include "blob.h" /* sanitiseName() */ |
54 | 54 |
|
55 |
-#define ole2_endian_convert_16(v) le16_to_host(v) |
|
56 |
-#define ole2_endian_convert_32(v) le32_to_host(v) |
|
55 |
+#define ole2_endian_convert_16(v) le16_to_host((uint16_t)(v)) |
|
56 |
+#define ole2_endian_convert_32(v) le32_to_host((uint32_t)(v)) |
|
57 | 57 |
|
58 | 58 |
#ifndef HAVE_ATTRIB_PACKED |
59 | 59 |
#define __attribute__(x) |