* xterm.c (x_alloc_nearest_color_1): Use a more-precise algorithm
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 13 Jun 2011 07:53:14 +0000 (00:53 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 13 Jun 2011 07:53:14 +0000 (00:53 -0700)
commit5efd304be978e2c0b3b1ac0c39b303b8d094ab66
tree3b6003057fd4b17346d0156b8e07bc58a6f68160
parent578c21e6cbfcd42d2b765ff93a5340555ef91d9d
* xterm.c (x_alloc_nearest_color_1): Use a more-precise algorithm

for nearest color, one that neither overflows nor relies on unsigned
arithmetic.
src/ChangeLog
src/xterm.c