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 9
9
* Multi Theft Auto is available from http://www.multitheftauto.com/
10
10
*
11
11
*****************************************************************************/
12
-
12
+ # include < limits >
13
13
14
14
// ///////////////////////////////////////////////////////////////////////
15
15
//
@@ -56,7 +56,7 @@ class CScriptArgReader
56
56
return ;
57
57
}
58
58
59
- if ( std::is_unsigned < T > () && number < 0.0 )
59
+ if ( std::is_unsigned < T > () && number < -FLT_EPSILON )
60
60
{
61
61
SetCustomError ( " Expected positive value, got negative" , " Bad argument" );
62
62
return ;
@@ -88,7 +88,7 @@ class CScriptArgReader
88
88
return ;
89
89
}
90
90
91
- if ( std::is_unsigned < T > () && number < 0.0 )
91
+ if ( std::is_unsigned < T > () && number < -FLT_EPSILON )
92
92
{
93
93
SetCustomError ( " Expected positive value, got negative" , " Bad argument" );
94
94
return ;
You can’t perform that action at this time.
0 commit comments