File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 99* Multi Theft Auto is available from http://www.multitheftauto.com/
1010*
1111*****************************************************************************/
12-
12+ # include < limits >
1313
1414// ///////////////////////////////////////////////////////////////////////
1515//
@@ -56,7 +56,7 @@ class CScriptArgReader
5656 return ;
5757 }
5858
59- if ( std::is_unsigned < T > () && number < 0.0 )
59+ if ( std::is_unsigned < T > () && number < -FLT_EPSILON )
6060 {
6161 SetCustomError ( " Expected positive value, got negative" , " Bad argument" );
6262 return ;
@@ -88,7 +88,7 @@ class CScriptArgReader
8888 return ;
8989 }
9090
91- if ( std::is_unsigned < T > () && number < 0.0 )
91+ if ( std::is_unsigned < T > () && number < -FLT_EPSILON )
9292 {
9393 SetCustomError ( " Expected positive value, got negative" , " Bad argument" );
9494 return ;
You can’t perform that action at this time.
0 commit comments