|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r57610 - trunk/boost/iostreams/filter
From: daniel_james_at_[hidden]
Date: 2009-11-12 14:20:10
Author: danieljames
Date: 2009-11-12 14:20:09 EST (Thu, 12 Nov 2009)
New Revision: 57610
URL: http://svn.boost.org/trac/boost/changeset/57610
Log:
Fix CRC on x64 during gzip decompression. Refs #3352.
Thanks to Thomas Suckow.
Text files modified:
trunk/boost/iostreams/filter/zlib.hpp | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
Modified: trunk/boost/iostreams/filter/zlib.hpp
==============================================================================
--- trunk/boost/iostreams/filter/zlib.hpp (original)
+++ trunk/boost/iostreams/filter/zlib.hpp 2009-11-12 14:20:09 EST (Thu, 12 Nov 2009)
@@ -20,6 +20,7 @@
#include <memory> // allocator, bad_alloc.
#include <new>
#include <boost/config.hpp> // MSVC, STATIC_CONSTANT, DEDUCED_TYPENAME, DINKUM.
+#include <boost/cstdint.hpp> // uint*_t
#include <boost/detail/workaround.hpp>
#include <boost/iostreams/constants.hpp> // buffer size.
#include <boost/iostreams/detail/config/auto_link.hpp>
@@ -43,9 +44,9 @@
namespace zlib {
// Typedefs
-typedef unsigned int uint;
-typedef unsigned char byte;
-typedef unsigned long ulong;
+typedef uint32_t uint;
+typedef uint8_t byte;
+typedef uint32_t ulong;
// Prefix 'x' prevents symbols from being redefined when Z_PREFIX is defined
typedef void* (*xalloc_func)(void*, zlib::uint, zlib::uint);
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk