diff options
Diffstat (limited to 'src/nsimage.m')
-rw-r--r-- | src/nsimage.m | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nsimage.m b/src/nsimage.m index 1479294948..8a8a3ddaae 100644 --- a/src/nsimage.m +++ b/src/nsimage.m @@ -302,7 +302,7 @@ static EmacsImage *ImageList = nil; [bmRep release]; return nil; } -#define hexchar(x) (isdigit (x) ? x - '0' : x - 'a' + 10) +#define hexchar(x) ('0' <= (x) && (x) <= '9' ? (x) - '0' : (x) - 'a' + 10) s1 = *s++; s2 = *s++; c = hexchar (s1) * 0x10 + hexchar (s2); @@ -501,4 +501,3 @@ static EmacsImage *ImageList = nil; } @end - |