X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=inline;f=ucw%2Fchartype.h;h=65972ce329c1fa385c113656026ec5f81c527149;hb=1e5ae8a779b693d8023ce9821b839f29e210d9e8;hp=09b41839324e959f154f1975b51fa007ec7737d7;hpb=be141e60a70c2a080263070cb3458d24821ff908;p=libucw.git diff --git a/ucw/chartype.h b/ucw/chartype.h index 09b41839..65972ce3 100644 --- a/ucw/chartype.h +++ b/ucw/chartype.h @@ -15,7 +15,7 @@ * This way we bypass most possible problems with different compilation environments. * * All functions and macros accept any numbers and if it is necessary, they simply ignore higher bits. - * It does not matter whether a parameter is signed or unsigned. Parameters are evaluated exactly once, + * It does not matter whether a parameter is signed or uintigned. Parameters are evaluated exactly once, * so they can have side-effects. ***/ @@ -56,9 +56,9 @@ extern const byte ucw_c_cat[256], ucw_c_upper[256], ucw_c_lower[256]; /** * Compute the value of a valid hexadecimal character (ie. passed the @Cxdigit() check). **/ -static inline uns Cxvalue(byte x) +static inline uint Cxvalue(byte x) { - return (x < (uns)'A') ? x - '0' : (x & 0xdf) - 'A' + 10; + return (x < (uint)'A') ? x - '0' : (x & 0xdf) - 'A' + 10; } #endif