Fixed signed/unsigned whinage.

git-svn-id: svn://10.0.0.236/trunk@82124 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rogerl%netscape.com 2000-11-01 02:04:04 +00:00
parent 4f42ff6819
commit 6e0f9ad195
4 changed files with 6 additions and 6 deletions

View File

@ -216,7 +216,7 @@ JSValue Context::readEvalFile(FILE* in, const String& fileName)
delete icm;
}
} catch (Exception &e) {
throw new JSException(&e.fullMessage());
throw new JSException(e.fullMessage());
}
return result;
}
@ -742,7 +742,7 @@ JSValue Context::interpret(ICodeModule* iCode, const JSValues& args)
const char16 *c = argName->data();
const char16 *end;
double d = stringToDouble(c, c + argName->size(), end);
uint32 index = -1;
int index = -1;
if ((d != d) || (d < 0) || (d != (int)d)) { // a non-numeric or negative value
if (icm->itsParameters->mRestParameter == ParameterList::HasRestParameterBeforeBar)

View File

@ -473,7 +473,7 @@ namespace JSTypes {
class JSException : public gc_base {
public:
JSException(String *mess) : value(JSValue(new JSString(mess))) { }
JSException(String mess) : value(JSValue(new JSString(mess))) { }
JSException(char *mess) : value(JSValue(new JSString(mess))) { }
JSException(JSValue v) : value(v) { }
JSValue value;

View File

@ -216,7 +216,7 @@ JSValue Context::readEvalFile(FILE* in, const String& fileName)
delete icm;
}
} catch (Exception &e) {
throw new JSException(&e.fullMessage());
throw new JSException(e.fullMessage());
}
return result;
}
@ -742,7 +742,7 @@ JSValue Context::interpret(ICodeModule* iCode, const JSValues& args)
const char16 *c = argName->data();
const char16 *end;
double d = stringToDouble(c, c + argName->size(), end);
uint32 index = -1;
int index = -1;
if ((d != d) || (d < 0) || (d != (int)d)) { // a non-numeric or negative value
if (icm->itsParameters->mRestParameter == ParameterList::HasRestParameterBeforeBar)

View File

@ -473,7 +473,7 @@ namespace JSTypes {
class JSException : public gc_base {
public:
JSException(String *mess) : value(JSValue(new JSString(mess))) { }
JSException(String mess) : value(JSValue(new JSString(mess))) { }
JSException(char *mess) : value(JSValue(new JSString(mess))) { }
JSException(JSValue v) : value(v) { }
JSValue value;