metex14: Handle a few missing cases for overflow.

This commit is contained in:
Uwe Hermann 2013-10-31 13:47:30 +01:00
parent 88f544f27e
commit 3a8cad9137
1 changed files with 4 additions and 0 deletions

View File

@ -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;