-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Description
Although this does not affect normal work, is this an error, a typo, or some other deeper consideration?
“0x20 <= c” "0x30 <= c"
inline bool is_hex(char c, int &v) { if (0x20 <= c && isdigit(c)) { v = c - '0'; return true; } else if ('A' <= c && c <= 'F') { v = c - 'A' + 10; return true; } else if ('a' <= c && c <= 'f') { v = c - 'a' + 10; return true; } return false; }
Spixmaster
Metadata
Metadata
Assignees
Labels
No labels