From 1a2406676c5f5e411ebd5ed3ee36e044124a0c8e Mon Sep 17 00:00:00 2001 From: "beard%netscape.com" Date: Fri, 7 Apr 2000 03:08:20 +0000 Subject: [PATCH] duh, can't use wide string constants on Linux --- js/js2/js2.cpp | 4 ++-- js2/tests/cpp/js2_shell.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/js/js2/js2.cpp b/js/js2/js2.cpp index 4a50e1f4aba..28b0b3e6ac1 100644 --- a/js/js2/js2.cpp +++ b/js/js2/js2.cpp @@ -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)); diff --git a/js2/tests/cpp/js2_shell.cpp b/js2/tests/cpp/js2_shell.cpp index 4a50e1f4aba..28b0b3e6ac1 100644 --- a/js2/tests/cpp/js2_shell.cpp +++ b/js2/tests/cpp/js2_shell.cpp @@ -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));