make endian conversion macros work when operand is negative number.

git-svn: trunk@3355
remotes/push_mirror/metadata
Török Edvin 18 years ago
parent f99a37a211
commit 22af56a31a
  1. 5
      ChangeLog
  2. 4
      libclamav/ole2_extract.c

@ -1,3 +1,8 @@
Sat Nov 3 00:25:52 EET 2007 (edwin)
------------------------------------
* libclamav/ole2_extract.c: make endian conversion macros work when operand
is negative number.
Fri Nov 2 00:16:27 CET 2007 (acab)
* libclamav/autoit: final

@ -52,8 +52,8 @@
#include "mbox.h"
#include "blob.h" /* sanitiseName() */
#define ole2_endian_convert_16(v) le16_to_host(v)
#define ole2_endian_convert_32(v) le32_to_host(v)
#define ole2_endian_convert_16(v) le16_to_host((uint16_t)(v))
#define ole2_endian_convert_32(v) le32_to_host((uint32_t)(v))
#ifndef HAVE_ATTRIB_PACKED
#define __attribute__(x)

Loading…
Cancel
Save