diff options
author | Guido van Rossum <guido@python.org> | 2000-07-01 00:38:19 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-07-01 00:38:19 +0000 |
commit | 9f754e0e2d788fff662e0e86bd082f5b9704b876 (patch) | |
tree | 610f306af5db877acdafa13a35e6043aa87305ec /Objects/classobject.c | |
parent | 973e4dcaff53e1c2d9bd12b0b88bfc8366d5e2a2 (diff) | |
download | cpython-git-9f754e0e2d788fff662e0e86bd082f5b9704b876.tar.gz |
In b_setitem(), instead of the platform dependent CHAR_MIN and
CHAR_MAX, use hardcoded -128 and 127. This may seem strange, unless
you realize that we're talking about signed bytes here! Bytes are
always 8 bits and 2's complement. CHAR_MIN and CHAR_MAX are
properties of the char data type, which is guaranteed to hold at least
8 bits anyway.
Otherwise you'd get failing tests on platforms where unsigned char is
the default (e.g. AIX).
Thanks, Vladimir Marangozov, for finding this nit!
Diffstat (limited to 'Objects/classobject.c')
0 files changed, 0 insertions, 0 deletions