From: Guido van Rossum Date: Tue, 2 May 2000 21:18:13 +0000 (+0000) Subject: Disable the ZEROTRAP code -- this turns a 0 byte into a 2 byte and I X-Git-Tag: v2.0b1~1870 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7d64b48eafea227f61433d125315d7b40bf47682;p=thirdparty%2FPython%2Fcpython.git Disable the ZEROTRAP code -- this turns a 0 byte into a 2 byte and I don't think that's what we want. There was some brief discussion of this somewhere but I don't recall where. --- diff --git a/Modules/audioop.c b/Modules/audioop.c index 702ca90a5bfb..c6c8fef05752 100644 --- a/Modules/audioop.c +++ b/Modules/audioop.c @@ -111,7 +111,7 @@ static int ulaw_table[256] = { 120, 112, 104, 96, 88, 80, 72, 64, 56, 48, 40, 32, 24, 16, 8, 0 }; -#define ZEROTRAP /* turn on the trap as per the MIL-STD */ +/* #define ZEROTRAP /* turn on the trap as per the MIL-STD */ #define BIAS 0x84 /* define the add-in bias for 16 bit samples */ #define CLIP 32635