Skip to content
Snippets Groups Projects
Commit a4eb94af authored by Bertrand Bellenot's avatar Bertrand Bellenot
Browse files

Fix warning: comparison is always true due to limited range of data type

git-svn-id: http://root.cern.ch/svn/root/trunk@35157 27541ba8-7e3a-0410-8455-c3a389f83636
parent 2fcd880c
No related branches found
No related tags found
No related merge requests found
......@@ -370,7 +370,7 @@ static Double_t StrToReal(const char *text, RealInfo_t & ri)
if (frac != 0) {
for (UInt_t i = 0; i < strlen(frac); i++) {
if (isdigit(frac[i])) {
if (ri.fFracNum < kMaxLong) {
if (ri.fFracNum < kMaxInt) {
ri.fFracNum = 10 * ri.fFracNum + (frac[i] - '0');
ri.fFracDigits++;
ri.fFracBase *= 10;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment