Core: Format: fixed corner-case

git-svn-id: svn://ultimatepp.org/upp/trunk@7238 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2014-04-13 05:50:44 +00:00
parent 0c60469503
commit bb2128dfc0

View file

@ -720,6 +720,8 @@ String FloatFormatter(const Formatting& f)
sprintf(ah, fmt, d);
return String(ah, n);
}
if(n < 0)
return String();
return String(h, n);
}