]> git.cryptolib.org Git - arm-crypto-lib.git/blobdiff - test_src/string-extras.c
starting to make bigint more portable/32-bit efficient
[arm-crypto-lib.git] / test_src / string-extras.c
index f4c95a2421dd567eac1e2ccb5b14d77a5f456807..0c01a048c8f4486002043f90503b4380769c7ba7 100644 (file)
@@ -42,7 +42,7 @@ uint32_t stridentcnt(const char* a, const char* b){
 
 uint16_t firstword_length(const char* s){
        uint16_t ret=0;
-       while(isgraph(*s++))
+       while(isgraph((uint8_t)(*s++)))
                ret++;
        return ret; 
 }