diff src/lread.c @ 5909:d138e600aa3a

Placate the C++ compiler, read_rational(). src/ChangeLog addition: 2015-05-09 Aidan Kehoe <kehoea@parhasard.net> * lread.c (read_rational): Cast the call to memchr() here to placate the C++ compiler.
author Aidan Kehoe <kehoea@parhasard.net>
date Sat, 09 May 2015 01:23:45 +0100
parents 6174848f3e6c
children 1152e0091f8c
line wrap: on
line diff
--- a/src/lread.c	Sat May 09 00:40:57 2015 +0100
+++ b/src/lread.c	Sat May 09 01:23:45 2015 +0100
@@ -2073,7 +2073,7 @@
 
   buf_ptr = resizing_buffer_stream_ptr (XLSTREAM (Vread_buffer_stream));
 
-  if ((slash = memchr (buf_ptr, '/', len)) == NULL)
+  if ((slash = (Ibyte *) memchr (buf_ptr, '/', len)) == NULL)
     {
       /* Can't be a ratio, parse as as an integer. */ 
       return parse_integer (buf_ptr, &buf_end, len, base, 0, Qnil);