[Forensics-changes] [yara] 99/192: Fix errors in endian.h

Hilko Bengen bengen at moszumanska.debian.org
Sat Jul 1 10:31:52 UTC 2017


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to annotated tag v3.6.0
in repository yara.

commit ca3927fcebb85c429231087ef796753a37d5b079
Author: plusvic <plusvic at gmail.com>
Date:   Tue Feb 7 12:21:48 2017 +0100

    Fix errors in endian.h
---
 libyara/include/yara/endian.h | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/libyara/include/yara/endian.h b/libyara/include/yara/endian.h
index 6c365c6..038e443 100644
--- a/libyara/include/yara/endian.h
+++ b/libyara/include/yara/endian.h
@@ -77,19 +77,19 @@ uint32_t _yr_bswap32(uint32_t x);
 
 #if defined(__has_builtin)
 #  if __has_builtin(__builtin_bswap64)
-#    define yr_bswap64(x) __builtin_bswap32(x)
+#    define yr_bswap64(x) __builtin_bswap64(x)
 #  endif
 #endif
 
-#if !defined(yr_bswap32) && defined(GCC_48)
-#  define yr_bswap64(x) __builtin_bswap32(x)
+#if !defined(yr_bswap64) && defined(GCC_48)
+#  define yr_bswap64(x) __builtin_bswap64(x)
 #endif
 
-#if !defined(yr_bswap32) && defined(_MSC_VER)
+#if !defined(yr_bswap64) && defined(_MSC_VER)
 #  define yr_bswap64(x) _byteswap_uint64(x)
 #endif
 
-#if !defined(yr_bswap32)
+#if !defined(yr_bswap64)
 uint64_t _yr_bswap64(uint64_t x);
 #define yr_bswap64(x) _yr_bswap64(x)
 #endif

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/forensics/yara.git



More information about the forensics-changes mailing list