metex14: Handle a few missing cases for overflow.
This commit is contained in:
parent
88f544f27e
commit
3a8cad9137
|
@ -61,6 +61,10 @@ static int parse_value(const uint8_t *buf, float *result)
|
|||
is_ol += (!strcasecmp((const char *)&valstr, "O.L")) ? 1 : 0;
|
||||
is_ol += (!strcasecmp((const char *)&valstr, "OL.")) ? 1 : 0;
|
||||
is_ol += (!strcasecmp((const char *)&valstr, "OL")) ? 1 : 0;
|
||||
is_ol += (!strcasecmp((const char *)&valstr, "-.OL")) ? 1 : 0;
|
||||
is_ol += (!strcasecmp((const char *)&valstr, "-O.L")) ? 1 : 0;
|
||||
is_ol += (!strcasecmp((const char *)&valstr, "-OL.")) ? 1 : 0;
|
||||
is_ol += (!strcasecmp((const char *)&valstr, "-OL")) ? 1 : 0;
|
||||
if (is_ol != 0) {
|
||||
sr_spew("Over limit.");
|
||||
*result = INFINITY;
|
||||
|
|
Loading…
Reference in New Issue