regex: avoid warning when pointers are not long
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 17 Jun 2012 16:55:15 +0000 (09:55 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 17 Jun 2012 16:55:15 +0000 (09:55 -0700)
commit3a4836d1fa061adf7b2f96fbda9c2345e6210732
tree39c3e5d0a60eb514f31215b1c38bc0c61d2440cb
parenteb3fb20593fa99229a1ae648fa3f57e297117577
regex: avoid warning when pointers are not long

* lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
and uintptr_t, not long, for portability to hosts where pointers and
long have different sizes.  Issue noted by Daniel P. Berrange in
<http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
and fix suggested by Bruno Haible in
<http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
ChangeLog
lib/regcomp.c