From 3d1e65a18ae5d6e0496f70712c693ae692749918 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 19 Jun 2011 11:38:58 -0700 Subject: [PATCH] * process.c (Fformat_network_address): Use EMACS_INT, not EMACS_UINT. We prefer signed integers, even for size calculations. --- src/ChangeLog | 3 +++ src/process.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index cc10da99d83..b843dfc6965 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2011-06-19 Paul Eggert + * process.c (Fformat_network_address): Use EMACS_INT, not EMACS_UINT. + We prefer signed integers, even for size calculations. + * emacs.c: Don't assume string length fits in 'int'. (DEFINE_DUMMY_FUNCTION, sort_args): Use ptrdiff_t, not int. (main): Don't invoke strlen when not needed. diff --git a/src/process.c b/src/process.c index 5a26bf43146..4151c8aeae6 100644 --- a/src/process.c +++ b/src/process.c @@ -1186,7 +1186,7 @@ Returns nil if format of ADDRESS is invalid. */) if (VECTORP (address)) /* AF_INET or AF_INET6 */ { register struct Lisp_Vector *p = XVECTOR (address); - EMACS_UINT size = p->header.size; + EMACS_INT size = p->header.size; Lisp_Object args[10]; int nargs, i; -- 2.39.2