summaryrefslogtreecommitdiff
path: root/audio/libaudiofile/files/patch-libaudiofile_modules_SimpleModule.h
blob: 641e80136ddf6399b9c303e5fedc99fb22f77387 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- libaudiofile/modules/SimpleModule.h.orig	2013-03-06 05:30:03 UTC
+++ libaudiofile/modules/SimpleModule.h
@@ -123,7 +123,7 @@ struct signConverter
 	typedef typename IntTypes<Format>::UnsignedType UnsignedType;
 
 	static const int kScaleBits = (Format + 1) * CHAR_BIT - 1;
-	static const int kMinSignedValue = -1 << kScaleBits;
+	static const int kMinSignedValue = ~0u << kScaleBits;
 
 	struct signedToUnsigned : public std::unary_function<SignedType, UnsignedType>
 	{