Port to Sun C 5.14
commitc49198967ae90f97e315dde5a4d1b234200f13df
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 2 Dec 2016 07:13:31 +0000 (1 23:13 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 2 Dec 2016 07:17:26 +0000 (1 23:17 -0800)
treea620d6880df853e20564e8589ef490d818c83aa2
parent95eb641404adca84e71959a98369a30f1cadb7b6
Port to Sun C 5.14

Backport from master.  Sun C 5.14 supports C11 but not GCC
extensions, and so refuses to compile Emacs without this patch.
* src/alloc.c (lmalloc, lrealloc): Don't use INT_ADD_WRAPV on
size_t, as in general this macro is restricted to signed types.
src/alloc.c