# HG changeset patch # User Aidan Kehoe # Date 1431131025 -3600 # Node ID d138e600aa3aa5a58d1f751a3ce7eeb977e1019c # Parent 6174848f3e6cff44ec30555d1935c9c2a320ddff Placate the C++ compiler, read_rational(). src/ChangeLog addition: 2015-05-09 Aidan Kehoe * lread.c (read_rational): Cast the call to memchr() here to placate the C++ compiler. diff -r 6174848f3e6c -r d138e600aa3a src/ChangeLog --- 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 + + * lread.c (read_rational): + Cast the call to memchr() here to placate the C++ compiler. + 2015-05-08 Aidan Kehoe * data.c (init_errors_once_early): diff -r 6174848f3e6c -r d138e600aa3a src/lread.c --- 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);