mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-21 22:04:56 -06:00
*Core: ConvertInt::Scan fix of lower limit for int result
git-svn-id: svn://ultimatepp.org/upp/trunk@3469 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
42f88f5531
commit
5b3fb640fc
1 changed files with 1 additions and 1 deletions
|
|
@ -340,7 +340,7 @@ Value ConvertInt::Scan(const Value& text) const {
|
|||
if(IsNull(v)) return notnull ? NotNullError() : v;
|
||||
int64 m = v;
|
||||
if(m >= minval && m <= maxval)
|
||||
if(m >= -INT_MIN && m <= INT_MAX)
|
||||
if(m >= INT_MIN && m <= INT_MAX)
|
||||
return (int)m;
|
||||
else
|
||||
return v;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue