mirror of
https://github.com/VARCem/PDCurses.git
synced 2026-09-24 07:45:21 +00:00
_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.
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user