pkgsrc/www/arena/patches/patch-ai
fredb b3599b99f0 Vanquish array cast bogon. Fixes "black screen" problem for 16-bit displays
on mac68k. Speculatively remove "NOT_FOR_PLATFORM= NetBSD-alpha-*"; needs
to be verified.
2000-02-09 01:01:20 +00:00

15 lines
419 B
Text

$NetBSD: patch-ai,v 1.1 2000/02/09 01:01:22 fredb Exp $
--- Arena/Source/gif.c.orig Sun Feb 15 10:09:16 1998
+++ Arena/Source/gif.c Tue Feb 8 18:31:08 2000
@@ -1121,8 +1121,8 @@
if (bpp == 2)
{
- *pp++ = ((char*)&ulp)[0]; /* LSB first! */
- *pp++ = ((char*)&ulp)[1];
+ *pp++ = (ulp ) & 0xff; /* LSB first! */
+ *pp++ = (ulp >> 8) & 0xff;
}
else
{