mirror of https://github.com/buggins/dlangui.git
support older compiler
This commit is contained in:
parent
cb670b057d
commit
18a2451de5
|
@ -83,10 +83,10 @@ class SettingsFile {
|
||||||
}
|
}
|
||||||
|
|
||||||
static int limitInt(long value, int minvalue, int maxvalue) {
|
static int limitInt(long value, int minvalue, int maxvalue) {
|
||||||
if (value < minValue)
|
if (value < minvalue)
|
||||||
return minValue;
|
return minvalue;
|
||||||
if (value > maxValue)
|
if (value > maxvalue)
|
||||||
return maxValue;
|
return maxvalue;
|
||||||
return value;
|
return value;
|
||||||
// remove clamp to support older compilers
|
// remove clamp to support older compilers
|
||||||
//return clamp(cast(int)value, minvalue, maxvalue);
|
//return clamp(cast(int)value, minvalue, maxvalue);
|
||||||
|
|
Loading…
Reference in New Issue