freebsd-ports/devel/gcvs/files/patch-cvsunix-lib_regex.c
Martin Wilke a28acc2928 - Fix build with gcc 4.2/AMD64
PR:		118027
Submitted by:	Pietro Cerutti <gahr@gahr.ch>
Approved by:	portmgr (pav,linimon)
2007-11-22 22:27:29 +00:00

11 lines
461 B
C

--- cvsunix/lib/regex.c.orig 2007-11-22 20:19:42.000000000 +0100
+++ cvsunix/lib/regex.c 2007-11-22 20:32:54.000000000 +0100
@@ -4909,7 +4909,7 @@
/* Compare that many; failure if mismatch, else move
past them. */
if (RE_TRANSLATE_P (translate)
- ? bcmp_translate (d, d2, mcnt, translate)
+ ? bcmp_translate ((unsigned char *)d, (unsigned char *)d2, mcnt, translate)
: bcmp (d, d2, mcnt))
goto fail;
d += mcnt, d2 += mcnt;