[Pinfo-devel] r191 - pinfo/branches/cxx/src

Nathanael Nerode neroden-guest at costa.debian.org
Wed Sep 7 02:55:02 UTC 2005


Author: neroden-guest
Date: 2005-09-07 02:55:01 +0000 (Wed, 07 Sep 2005)
New Revision: 191

Modified:
   pinfo/branches/cxx/src/mainfunction.cxx
Log:
Fix a signed/unsigned issue with pagedown.


Modified: pinfo/branches/cxx/src/mainfunction.cxx
===================================================================
--- pinfo/branches/cxx/src/mainfunction.cxx	2005-09-07 02:52:51 UTC (rev 190)
+++ pinfo/branches/cxx/src/mainfunction.cxx	2005-09-07 02:55:01 UTC (rev 191)
@@ -916,12 +916,14 @@
 			if ((key == keys.pgdn_1) ||
 					(key == keys.pgdn_2))
 			{
-				if (pos +(maxy - 2) < my_message.size() -(maxy - 2))
+				/* Signed/unsigned issues.  FIXME */
+				if (pos +(maxy - 2) < (signed)my_message.size() -(maxy - 2))
 				{
 					pos +=(maxy - 2);
 					rescan_cursor();
 				}
-				else if (my_message.size() -(maxy - 2) >= 1)
+				/* Signed/unsigned issues.  FIXME */
+				else if ((signed)my_message.size() -(maxy - 2) >= 1)
 				{
 					pos = my_message.size() -(maxy - 2);
 					cursor = hyperobjects.size() - 1;




More information about the Pinfo-devel mailing list