From 64a00d37591cd19205f481d55da460174da2de7f Mon Sep 17 00:00:00 2001 From: William McBrine Date: Wed, 18 Jan 2006 19:40:08 +0000 Subject: [PATCH] _NO_CHANGE is -1, so x will always be greater, and a separate test is not needed. Which makes it asymmetrical; and to depend on the known value of a define defeats the purpose of using a define; so I'd test it anyway, but this is a critical performance section. --- pdcurses/addchstr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pdcurses/addchstr.c b/pdcurses/addchstr.c index b2e83e7d..b13281bf 100644 --- a/pdcurses/addchstr.c +++ b/pdcurses/addchstr.c @@ -41,7 +41,7 @@ #endif #ifdef PDCDEBUG -char *rcsid_addchstr = "$Id: addchstr.c,v 1.12 2006/01/18 19:30:22 wmcbrine Exp $"; +char *rcsid_addchstr = "$Id: addchstr.c,v 1.13 2006/01/18 19:40:08 wmcbrine Exp $"; #endif /*man-start********************************************************************* @@ -174,7 +174,7 @@ int n; if (x < minx || minx == _NO_CHANGE) minx = x; - if (x > maxx || maxx == _NO_CHANGE) + if (x > maxx) maxx = x; PDC_LOG(("y %d x %d minx %d maxx %d *ptr %x *ch"