mirror of
https://github.com/wiire-a/pixiewps.git
synced 2025-07-27 15:54:29 +02:00
parent
03da4adea5
commit
3b468a2672
@ -214,10 +214,10 @@ char v_usage[] =
|
|||||||
"\n";
|
"\n";
|
||||||
|
|
||||||
/* One digit comma separated number parsing */
|
/* One digit comma separated number parsing */
|
||||||
inline uint_fast8_t parse_mode(char *list, uint_fast8_t *dst, const uint_fast8_t max_digit) {
|
inline uint_fast8_t parse_mode(char *list, uint_fast8_t *dst, const uint8_t max_digit) {
|
||||||
uint_fast8_t cnt = 0;
|
uint_fast8_t cnt = 0;
|
||||||
while (*list != 0) {
|
while (*list != 0) {
|
||||||
if (*list <= (max_digit + '0')) {
|
if (*list <= ((char) max_digit) + '0') {
|
||||||
dst[cnt] = *list - '0';
|
dst[cnt] = *list - '0';
|
||||||
cnt++;
|
cnt++;
|
||||||
list++;
|
list++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user