visual studio 2012 Level 4 warning fixes

This commit is contained in:
Thomas Fischer 2014-03-15 11:38:53 +01:00
parent 835649aa2f
commit 502e346eb6
8 changed files with 19 additions and 24 deletions

View file

@ -108,7 +108,7 @@ compare_right(const nat_char* a, const nat_char* b)
remember it in BIAS. */
for (;; a++, b++) {
if (!nat_isdigit(*a) && !nat_isdigit(*b))
return bias;
break;
else if (!nat_isdigit(*a))
return -1;
else if (!nat_isdigit(*b))
@ -123,7 +123,7 @@ compare_right(const nat_char* a, const nat_char* b)
return bias;
}
return 0;
return bias;
}
@ -134,7 +134,7 @@ compare_left(const nat_char* a, const nat_char* b)
different value wins. */
for (;; a++, b++) {
if (!nat_isdigit(*a) && !nat_isdigit(*b))
return 0;
break;
else if (!nat_isdigit(*a))
return -1;
else if (!nat_isdigit(*b))