[Plib-cvs] plib/src/pui puInterface.cxx,1.18,1.19
Brought to you by:
sjbaker
From: James J. <pu...@us...> - 2003-12-16 23:16:07
|
Update of /cvsroot/plib/plib/src/pui In directory sc8-pr-cvs1:/tmp/cvs-serv31268 Modified Files: puInterface.cxx Log Message: The variable "currLiveInterface" is initialized to -1 when the stack is empty. When the first live interface gets put onto the stack, "currLiveInterface" is incremented to zero. Thus when we are popping the last live interface, the value of "currLiveInterface" should be zero instead of one. This change fixes the problem. (John Fay) Index: puInterface.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/pui/puInterface.cxx,v retrieving revision 1.18 retrieving revision 1.19 diff -u -d -r1.18 -r1.19 --- puInterface.cxx 7 Feb 2003 15:02:50 -0000 1.18 +++ puInterface.cxx 16 Dec 2003 23:16:04 -0000 1.19 @@ -42,7 +42,7 @@ void puPopLiveInterface ( puInterface *in ) { - if ( currLiveInterface <= 0 ) + if ( currLiveInterface < 0 ) { ulSetError ( UL_WARNING, "PUI: Live puInterface stack is empty!\n" ) ; return; |