Fix range handling

This commit is contained in:
Denis Kenzior 2009-07-15 11:43:29 -05:00
parent 4fa4f491a4
commit 22ad7dc7c5
1 changed files with 2 additions and 5 deletions

View File

@ -274,15 +274,12 @@ gboolean g_at_result_iter_next_range(GAtResultIter *iter, gint *min, gint *max)
if (pos == end)
return FALSE;
if (line[end] == ',') {
if (line[end] != '-') {
high = low;
goto out;
}
if (line[end] == '-')
pos = end = end + 1;
else
return FALSE;
pos = end = end + 1;
while (line[end] >= '0' && line[end] <= '9') {
high = high * 10 + (int)(line[end] - '0');