summaryrefslogtreecommitdiff
path: root/textproc/jade/patches/patch-ab
blob: 62c97e042cfc8530a8c3eb9f1a62b01c0f9b6546 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
$NetBSD: patch-ab,v 1.1 2001/03/29 01:02:59 hubertf Exp $

--- style/Interpreter.cxx.orig	Thu Oct  1 07:14:54 1998
+++ style/Interpreter.cxx
@@ -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); /* temp var to work around */
+    Unit *unit = lookupUnit(temp);	       /* compiler prob(?) */
     long n = unitsPerInch_ * units[i].numer;
     if (n % units[i].denom == 0)
       unit->setValue(long(n / units[i].denom));