File:  [cvs.NetBSD.org] / pkgsrc / www / clearsilver / patches / Attic / patch-ae
Revision 1.1: download - view: text, annotated - select for diffs
Sun Aug 17 08:40:50 2008 UTC (16 years, 9 months ago) by dholland
Branches: MAIN
CVS tags: pkgsrc-2008Q3-base, pkgsrc-2008Q3, cube-native-xorg-base, cube-native-xorg, HEAD
Use -fPIC in more places; fixes broken amd64 build and perhaps others.
Fix a long/int type mismatch hidden by use of ... and va_arg; fixes
broken LP64 builds.

$NetBSD: patch-ae,v 1.1 2008/08/17 08:40:50 dholland Exp $

Fix type mismatch through va_arg() and resulting nasal demons.

--- cs/csparse.c.orig	2005-06-30 21:04:34.000000000 -0400
+++ cs/csparse.c	2008-08-17 04:36:18.000000000 -0400
@@ -3359,9 +3359,9 @@ static NEOERR * _builtin_str_slice (CSPA
   NEOERR *err;
   char *s = NULL;
   char *slice;
-  int b = 0;
-  int e = 0;
-  int len;
+  long int b = 0;
+  long int e = 0;
+  long int len;
 
   result->op_type = CS_TYPE_STRING;
   result->s = "";

CVSweb <webmaster@jp.NetBSD.org>