mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Fix broken cast of BIT to unsigned char.
This commit is contained in:
parent
3e9dc5b994
commit
e6d8f06093
@ -1,3 +1,9 @@
|
||||
2003-09-22 Hrvoje Niksic <hniksic@xemacs.org>
|
||||
|
||||
* safe-ctype.h (_sch_test): The cast of BIT to unsigned char was
|
||||
broken -- _sch_istable bitmasks are 16-bit, not 8-bit! Cast BIT
|
||||
to unsigned short instead.
|
||||
|
||||
2003-09-22 Hrvoje Niksic <hniksic@xemacs.org>
|
||||
|
||||
* url.c (path_simplify): Instead of calls to memmove, handle "./"
|
||||
|
@ -100,7 +100,7 @@ enum {
|
||||
/* Character classification. */
|
||||
extern const unsigned short _sch_istable[256];
|
||||
|
||||
#define _sch_test(c, bit) (_sch_istable[(c) & 0xff] & (unsigned char)(bit))
|
||||
#define _sch_test(c, bit) (_sch_istable[(c) & 0xff] & (unsigned short)(bit))
|
||||
|
||||
#define ISALPHA(c) _sch_test(c, _sch_isalpha)
|
||||
#define ISALNUM(c) _sch_test(c, _sch_isalnum)
|
||||
|
Loading…
Reference in New Issue
Block a user