gmio_core: fix spacing issues

This commit is contained in:
Hugues Delorme 2016-01-05 11:44:53 +01:00
parent 9d9d65bbd5
commit 56241d22f6
2 changed files with 4 additions and 4 deletions

View File

@ -106,7 +106,7 @@ int gmio_ascii_isdigit(char c)
return isdigit(c);
#else
/* 48 <= c <= 57 */
return (uint8_t) (c - 48) < 10;
return (uint8_t)(c - 48) < 10;
#endif
}
@ -116,7 +116,7 @@ int gmio_ascii_isupper(char c)
return isupper(c);
#else
/* 65 <= c <= 90; */
return (uint8_t) (c - 65) < 26;
return (uint8_t)(c - 65) < 26;
#endif
}
@ -126,7 +126,7 @@ int gmio_ascii_islower(char c)
return islower(c);
#else
/* 97 <= c <= 122; */
return (uint8_t) (c - 97) < 26;
return (uint8_t)(c - 97) < 26;
#endif
}

View File

@ -32,9 +32,9 @@ GMIO_INLINE int32_t gmio_stringstream_strtol10(
const char* in = gmio_stringstream_current_char(sstream);
const gmio_bool_t inv = (*in == '-');
int value = 0;
if (inv || *in == '+')
in = gmio_stringstream_next_char(sstream);
value = gmio_stringstream_strtoul10(sstream);
if (inv)
value = -value;