From: Paul Eggert Date: Sun, 19 Jun 2011 18:38:58 +0000 (-0700) Subject: * process.c (Fformat_network_address): Use EMACS_INT, not EMACS_UINT. X-Git-Tag: emacs-pretest-24.0.90~104^2~473^2~31 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3d1e65a18ae5d6e0496f70712c693ae692749918;p=emacs.git * process.c (Fformat_network_address): Use EMACS_INT, not EMACS_UINT. We prefer signed integers, even for size calculations. --- 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;