[Patches] [Patch #101433] Fix for 110845: Check struct short and byte ranges

noreply@sourceforge.net noreply@sourceforge.net
Fri, 15 Sep 2000 01:12:25 -0700


Patch #101433 has been updated. 

Project: 
Category: library
Status: Closed
Summary: Fix for 110845: Check struct short and byte ranges

Follow-Ups:

Date: 2000-Sep-14 16:57
By: tmick

Comment:
Instead of 0 - 65536 and -32768 - +32767 you should use USHRT_MIN, USHRT_MAX, SHRT_MIN,  and SHRT_MAX.

I may the names slightly wrong but they are standard C things (I think). They are being used in Python/getargs.c.
-------------------------------------------------------

Date: 2000-Sep-15 01:12
By: loewis

Comment:
I've changed the patch to use symbolic constants.
Since there is no USHRT_MIN in ISO C, I don't use this constant.
-------------------------------------------------------

-------------------------------------------------------
For more info, visit:

http://sourceforge.net/patch/?func=detailpatch&patch_id=101433&group_id=5470