Subject: Re: Jade doesn't work
To: NetBSD/pkg <tech-pkg@netbsd.org>
From: Kogule, Ryo <kogule@mars.dti.ne.jp>
List: tech-pkg
Date: 03/28/2001 18:54:37
I found Jade works with the patch below.

This patch doesn't change anything in C++ semantics. It's just for evading
the trouble.

--- Interpreter.cxx.orig        Tue Mar 27 21:40:44 2001
+++ Interpreter.cxx     Tue Mar 27 21:42:39 2001
@@ -184,7 +184,8 @@
   };
   size_t nUnits = dsssl2() ? SIZEOF(units) : SIZEOF(units) - 1;
   for (size_t i = 0; i < nUnits; i++) {
-    Unit *unit = lookupUnit(makeStringC(units[i].name));
+    StringC temp = makeStringC(units[i].name);
+    Unit *unit = lookupUnit(temp);
     long n = unitsPerInch_ * units[i].numer;
     if (n % units[i].denom == 0)
       unit->setValue(long(n / units[i].denom));