Commit 3d1e65a1 authored by Paul Eggert's avatar Paul Eggert
Browse files

* process.c (Fformat_network_address): Use EMACS_INT, not EMACS_UINT.

We prefer signed integers, even for size calculations.
parent 0b963a93
2011-06-19 Paul Eggert <eggert@cs.ucla.edu>
* 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.
......
......@@ -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;
......
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