Commit d40d4be1 authored by Paul Eggert's avatar Paul Eggert
Browse files

* alloc.c (Fmemory_limit): Cast sbrk's returned value to char *.

parent 7bc26fdb
......@@ -10,6 +10,7 @@
needed otherwise.
(CHECK_ALLOCATED): Define only if GC_CHECK_MARKED_OBJECTS.
(GC_STRING_CHARS): Remove; not used.
(Fmemory_limit): Cast sbrk's returned value to char *.
 
* lisp.h (check_cons_list): Declare if GC_CHECK_CONS_LIST; this
avoids undefined behavior in theory.
......@@ -6057,7 +6057,7 @@ We divide the value by 1024 to make sure it fits in a Lisp integer. */)
{
Lisp_Object end;
XSETINT (end, (EMACS_INT) sbrk (0) / 1024);
XSETINT (end, (EMACS_INT) (char *) sbrk (0) / 1024);
return end;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment