forked from external/yambar
module/script: can’t use logical OR when building a base 10 number
This commit is contained in:
parent
08bac77907
commit
73407853e4
1 changed files with 2 additions and 2 deletions
|
@ -140,7 +140,7 @@ process_line(struct module *mod, const char *line, size_t len)
|
||||||
goto bad_tag;
|
goto bad_tag;
|
||||||
|
|
||||||
start *= 10;
|
start *= 10;
|
||||||
start |= _start[i] - '0';
|
start += _start[i] - '0';
|
||||||
}
|
}
|
||||||
|
|
||||||
long end = 0;
|
long end = 0;
|
||||||
|
@ -149,7 +149,7 @@ process_line(struct module *mod, const char *line, size_t len)
|
||||||
goto bad_tag;
|
goto bad_tag;
|
||||||
|
|
||||||
end *= 10;
|
end *= 10;
|
||||||
end |= _end[i] - '0';
|
end += _end[i] - '0';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type_len > 9 && memcmp(type, "realtime:", 9) == 0) {
|
if (type_len > 9 && memcmp(type, "realtime:", 9) == 0) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue