duh, can't use wide string constants on Linux

git-svn-id: svn://10.0.0.236/trunk@65478 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
beard%netscape.com 2000-04-07 03:08:20 +00:00
parent 14d0662d1c
commit 6b7c024d03
2 changed files with 4 additions and 4 deletions

View File

@ -404,12 +404,12 @@ static float64 testObjects(World &world, int32 n)
ICodeGenerator initCG;
// var global = new Object();
StringAtom& global = world.identifiers[L"global"];
StringAtom& global = world.identifiers[widenCString("global")];
initCG.beginStatement(position);
initCG.saveName(global, initCG.newObject());
// global.counter = 0;
StringAtom& counter = world.identifiers[L"counter"];
StringAtom& counter = world.identifiers[widenCString("counter")];
initCG.beginStatement(position);
initCG.setProperty(counter, initCG.loadName(global), initCG.loadImmediate(0.0));

View File

@ -404,12 +404,12 @@ static float64 testObjects(World &world, int32 n)
ICodeGenerator initCG;
// var global = new Object();
StringAtom& global = world.identifiers[L"global"];
StringAtom& global = world.identifiers[widenCString("global")];
initCG.beginStatement(position);
initCG.saveName(global, initCG.newObject());
// global.counter = 0;
StringAtom& counter = world.identifiers[L"counter"];
StringAtom& counter = world.identifiers[widenCString("counter")];
initCG.beginStatement(position);
initCG.setProperty(counter, initCG.loadName(global), initCG.loadImmediate(0.0));