]> git.eshelyaron.com Git - emacs.git/commitdiff
(readline): Cast buffer to "long *" to pacify
authorEli Zaretskii <eliz@gnu.org>
Tue, 2 Jan 2001 13:51:07 +0000 (13:51 +0000)
committerEli Zaretskii <eliz@gnu.org>
Tue, 2 Jan 2001 13:51:07 +0000 (13:51 +0000)
over-zealous compilers.

lib-src/fakemail.c

index e011d352ffd60ac71c325351989039141764f193..588496a8ed49f7918a450c94a283bb1c795fce6e 100644 (file)
@@ -224,7 +224,7 @@ readline (linebuffer, stream)
       if (p == end)
        {
          linebuffer->size *= 2;
-         buffer = ((char *) xrealloc (buffer, linebuffer->size));
+         buffer = ((char *) xrealloc ((long *)buffer, linebuffer->size));
          p = buffer + (p - linebuffer->buffer);
          end = buffer + linebuffer->size;
          linebuffer->buffer = buffer;