Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/tmux/dist Hm, upstream maintainer says loop nee...



details:   https://anonhg.NetBSD.org/src/rev/27479b65c13d
branches:  trunk
changeset: 768600:27479b65c13d
user:      he <he%NetBSD.org@localhost>
date:      Mon Aug 22 09:19:51 2011 +0000

description:
Hm, upstream maintainer says loop needs to start from 0, make it so.

diffstat:

 external/bsd/tmux/dist/colour.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 4e945b18d9a5 -r 27479b65c13d external/bsd/tmux/dist/colour.c
--- a/external/bsd/tmux/dist/colour.c   Mon Aug 22 08:33:24 2011 +0000
+++ b/external/bsd/tmux/dist/colour.c   Mon Aug 22 09:19:51 2011 +0000
@@ -1,4 +1,4 @@
-/* $Id: colour.c,v 1.2 2011/08/22 06:52:35 he Exp $ */
+/* $Id: colour.c,v 1.3 2011/08/22 09:19:51 he Exp $ */
 
 /*
  * Copyright (c) 2008 Nicholas Marriott <nicm%users.sourceforge.net@localhost>
@@ -113,7 +113,7 @@
 
        colour = 16;
        lowest = UINT_MAX;
-       for (i = 1; i < 240; i++) {
+       for (i = 0; i < 240; i++) {
                distance = colour_rgb_distance(&colour_rgb_256[i], rgb);
                if (distance < lowest) {
                        lowest = distance;



Home | Main Index | Thread Index | Old Index