Updated sprintf call

git-svn-id: svn://10.0.0.236/trunk@65204 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
waldemar%netscape.com
2000-04-04 21:38:53 +00:00
parent 68fd4fc759
commit fdc3910370
2 changed files with 2 additions and 4 deletions

View File

@@ -21,7 +21,6 @@
#include <cstdlib>
#include <cstring>
#include <cfloat>
#include <cstdio>
#include <algorithm>
#include "numerics.h"
@@ -2517,7 +2516,7 @@ char *JS::doubleToStr(char *buffer, size_t DEBUG_ONLY(bufferSize), double value,
numBegin[0] = numBegin[1];
numBegin[1] = '.';
}
STD::sprintf(numEnd, "e%+d", decPt-1);
sprintf(numEnd, "e%+d", decPt-1);
} else if (decPt != nDigits) {
// Some kind of a fraction in fixed notation
ASSERT(decPt <= nDigits);

View File

@@ -21,7 +21,6 @@
#include <cstdlib>
#include <cstring>
#include <cfloat>
#include <cstdio>
#include <algorithm>
#include "numerics.h"
@@ -2517,7 +2516,7 @@ char *JS::doubleToStr(char *buffer, size_t DEBUG_ONLY(bufferSize), double value,
numBegin[0] = numBegin[1];
numBegin[1] = '.';
}
STD::sprintf(numEnd, "e%+d", decPt-1);
sprintf(numEnd, "e%+d", decPt-1);
} else if (decPt != nDigits) {
// Some kind of a fraction in fixed notation
ASSERT(decPt <= nDigits);