changeset 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 eb1e15c9440b
files src/ChangeLog src/lread.c
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Sat May 09 00:40:57 2015 +0100
+++ b/src/ChangeLog	Sat May 09 01:23:45 2015 +0100
@@ -1,3 +1,8 @@
+2015-05-09  Aidan Kehoe  <kehoea@parhasard.net>
+
+	* lread.c (read_rational):
+	Cast the call to memchr() here to placate the C++ compiler.
+
 2015-05-08  Aidan Kehoe  <kehoea@parhasard.net>
 
 	* data.c (init_errors_once_early):
--- 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);