mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-11 23:51:06 +00:00
libsysprof-gtk: use 0 instead of -inf/inf
This commit is contained in:
@ -398,10 +398,10 @@ sysprof_normalized_series_get_value_at (SysprofNormalizedSeries *self,
|
||||
g_return_val_if_fail (SYSPROF_IS_NORMALIZED_SERIES (self), .0f);
|
||||
|
||||
if (egg_bitset_contains (self->missing, position))
|
||||
return -INFINITY;
|
||||
return .0;
|
||||
|
||||
if (position >= self->values->len)
|
||||
return -INFINITY;
|
||||
return .0;
|
||||
|
||||
return g_array_index (self->values, float, position);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user