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) {
|
||||
if (value < minValue)
|
||||
return minValue;
|
||||
if (value > maxValue)
|
||||
return maxValue;
|
||||
if (value < minvalue)
|
||||
return minvalue;
|
||||
if (value > maxvalue)
|
||||
return maxvalue;
|
||||
return value;
|
||||
// remove clamp to support older compilers
|
||||
//return clamp(cast(int)value, minvalue, maxvalue);
|
||||
|
|
Loading…
Reference in New Issue