*** empty log message ***
This commit is contained in:
parent
375a2fdeb4
commit
98bd7c8142
|
|
@ -31,6 +31,9 @@ static INLINE float scale_t(float t, float start, float end) {
|
|||
ret = start;
|
||||
if (ret > end)
|
||||
ret = end;
|
||||
// Avoid a possible divide-by-zero
|
||||
if (end == 0.0)
|
||||
return 0.0;
|
||||
return ret / end;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue