freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

address@hidden: Bug#54539: freetype2 abuses va_arg]


From: Anthony Fok
Subject: address@hidden: Bug#54539: freetype2 abuses va_arg]
Date: Tue, 11 Jan 2000 20:55:10 -0700
User-agent: Mutt/1.0i

Hello!  I received the following bug report and a bug fix to ttf2pfb.c
from a fellow Debian developer on the PowerPC.  Just in case Daniel
hasn't already, I am forwarding it to you.  Muchas Gratias!
(Danke Schoen!  :-)

----- Forwarded message from Daniel Jacobowitz <address@hidden> -----

Subject: Bug#54539: freetype2 abuses va_arg
Date: Sun, 9 Jan 2000 05:29:54 -0500
From: Daniel Jacobowitz <address@hidden>
To: address@hidden
Content-Type: multipart/mixed; boundary="vtzGhvizbBRQ85DL"

Package: freetype2
Severity: important
Version: 1.3.1-0

The attached patch fixes a va_arg problem in freetype2 that prevents it from
building on powerpc.  If you don't have time to NMU in the next day or to, I
will, unless you have a strong objection.

Dan

/--------------------------------\  /--------------------------------\
|       Daniel Jacobowitz        |__|        SCS Class of 2002       |
|   Debian GNU/Linux Developer    __    Carnegie Mellon University   |
|         address@hidden         |  |       address@hidden      |
\--------------------------------/  \--------------------------------/

--- contrib/ttf2pfb/ttf2pfb.c.orig      Sun Jan  9 05:18:20 2000
+++ contrib/ttf2pfb/ttf2pfb.c   Sun Jan  9 05:19:26 2000
@@ -364,7 +364,7 @@
   int       i, j;
 
   va_start(vp, dummy);
-  numCR = va_arg(vp, UShort);
+  numCR = (UShort)va_arg(vp, int);
 
   encVec = re_alloc(encVec, 1 * sizeof (EncVec), "Alloc_EncVec");
   encVec->numCodeRanges = numCR;
@@ -372,15 +372,15 @@
   cRange = re_alloc(cRange, numCR * sizeof (EVcRange), "Alloc_EncVec");
   for (i = 0; i < numCR; i++)
   {
-    (cRange + i)->high.start   = va_arg(vp, UShort);
-    (cRange + i)->high.end     = va_arg(vp, UShort);
-    (cRange + i)->numLowRanges = numLows = va_arg(vp, UShort);
+    (cRange + i)->high.start   = (UShort) va_arg(vp, int);
+    (cRange + i)->high.end     = (UShort) va_arg(vp, int);
+    (cRange + i)->numLowRanges = numLows = (UShort) va_arg(vp, int);
     evLow = NULL;
     evLow = re_alloc(evLow, numLows * sizeof (EVLow), "Alloc_EncVec");
     for (j = 0; j < numLows; j++)
     {
-      (evLow + j)->start = va_arg(vp, UChar);
-      (evLow + j)->end   = va_arg(vp, UChar);
+      (evLow + j)->start = (UChar) va_arg(vp, int);
+      (evLow + j)->end   = (UChar) va_arg(vp, int);
     }
     (cRange + i)->low = evLow;
   }


----- End forwarded message -----

-- 
Anthony Fok Tung-Ling                Civil and Environmental Engineering
address@hidden, address@hidden    University of Alberta, Canada
address@hidden             Keep smiling!  *^_^*
Come visit Our Lady of Victory Camp -- http://come.to/olvc



reply via email to

[Prev in Thread] Current Thread [Next in Thread]