Fixed gcc whine about char16.

git-svn-id: svn://10.0.0.236/trunk@81902 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rogerl%netscape.com
2000-10-28 00:07:36 +00:00
parent 7ccc093f31
commit 2dc7e15103
2 changed files with 4 additions and 4 deletions

View File

@@ -748,9 +748,9 @@ JSValue Context::interpret(ICodeModule* iCode, const JSValues& args)
if (icm->itsParameters->mRestParameter != ParameterList::HasUnnamedRestParameter) {
// if the name is a numeric literal >= 0, use it as an array index
// otherwise just set the named property.
const char16 *c = argName->c_str();
const char16 *c = argName->data();
const char16 *end;
double d = stringToDouble(c, c + argName->length(), end);
double d = stringToDouble(c, c + argName->size(), end);
if ((d != d) || (d < 0) || (d != (int)d)) { // a non-numeric or negative value
if (icm->itsParameters->mRestParameter == ParameterList::HasRestParameterBeforeBar)

View File

@@ -748,9 +748,9 @@ JSValue Context::interpret(ICodeModule* iCode, const JSValues& args)
if (icm->itsParameters->mRestParameter != ParameterList::HasUnnamedRestParameter) {
// if the name is a numeric literal >= 0, use it as an array index
// otherwise just set the named property.
const char16 *c = argName->c_str();
const char16 *c = argName->data();
const char16 *end;
double d = stringToDouble(c, c + argName->length(), end);
double d = stringToDouble(c, c + argName->size(), end);
if ((d != d) || (d < 0) || (d != (int)d)) { // a non-numeric or negative value
if (icm->itsParameters->mRestParameter == ParameterList::HasRestParameterBeforeBar)