(svn r20162) -Fix [FS#3954]: integer comparison failed in case the difference was more than "MAX_UINT"/2
This commit is contained in:
@@ -1757,6 +1757,48 @@ function Regression::PrintSubsidy(subsidy_id)
|
||||
print(" GetCargoType(): " + AISubsidy.GetCargoType(subsidy_id));
|
||||
}
|
||||
|
||||
function Regression::Math()
|
||||
{
|
||||
print("");
|
||||
print("--Math--");
|
||||
print(" -2147483648 < -2147483647: " + (-2147483648 < -2147483647));
|
||||
print(" -2147483648 < -1 : " + (-2147483648 < -1 ));
|
||||
print(" -2147483648 < 0 : " + (-2147483648 < 0 ));
|
||||
print(" -2147483648 < 1 : " + (-2147483648 < 1 ));
|
||||
print(" -2147483648 < 2147483647: " + (-2147483648 < 2147483647));
|
||||
|
||||
print(" -2147483647 < -2147483648: " + (-2147483647 < -2147483648));
|
||||
print(" -1 < -2147483648: " + (-1 < -2147483648));
|
||||
print(" 0 < -2147483648: " + ( 0 < -2147483648));
|
||||
print(" 1 < -2147483648: " + ( 1 < -2147483648));
|
||||
print(" 2147483647 < -2147483648: " + ( 2147483647 < -2147483648));
|
||||
|
||||
print(" -1 > 2147483647: " + (-1 > 2147483647));
|
||||
print(" -1 > 1 : " + (-1 > 1 ));
|
||||
print(" -1 > 0 : " + (-1 > 0 ));
|
||||
print(" -1 > -1 : " + (-1 > -1 ));
|
||||
print(" -1 > -2147483648: " + (-1 > -2147483648));
|
||||
|
||||
print(" 1 > 2147483647: " + ( 1 > 2147483647));
|
||||
print(" 1 > 1 : " + ( 1 > 1 ));
|
||||
print(" 1 > 0 : " + ( 1 > 0 ));
|
||||
print(" 1 > -1 : " + ( 1 > -1 ));
|
||||
print(" 1 > -2147483648: " + ( 1 > -2147483648));
|
||||
|
||||
print(" 2147483647 > 2147483646: " + ( 2147483647 > 2147483646));
|
||||
print(" 2147483647 > 1 : " + ( 2147483647 > 1 ));
|
||||
print(" 2147483647 > 0 : " + ( 2147483647 > 0 ));
|
||||
print(" 2147483647 > -1 : " + ( 2147483647 > -1 ));
|
||||
print(" 2147483647 > -2147483648: " + ( 2147483647 > -2147483648));
|
||||
|
||||
print(" 2147483646 > 2147483647: " + ( 2147483646 > 2147483647));
|
||||
print(" 1 > 2147483647: " + ( 1 > 2147483647));
|
||||
print(" 0 > 2147483647: " + ( 0 > 2147483647));
|
||||
print(" -1 > 2147483647: " + (-1 > 2147483647));
|
||||
print(" -2147483648 > 2147483647: " + (-2147483648 > 2147483647));
|
||||
|
||||
print(" 13725 > -2147483648: " + ( 13725 > -2147483648));
|
||||
}
|
||||
|
||||
function Regression::Start()
|
||||
{
|
||||
@@ -1822,5 +1864,7 @@ function Regression::Start()
|
||||
}
|
||||
}
|
||||
print(" IsEventWaiting: false");
|
||||
|
||||
this.Math();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user