octave-maintainers
[Top][All Lists]
Advanced

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

Re: warnings originating in gl2ps -- update


From: CdeMills
Subject: Re: warnings originating in gl2ps -- update
Date: Thu, 10 Feb 2011 08:37:38 -0800 (PST)

Sorry, I didn't try very small values of int vs. very big values of uint. The
safe way is to reverse the test:

--- a/src/load-path.cc  Thu Feb 10 00:58:31 2011 -0500
+++ b/src/load-path.cc  Thu Feb 10 17:36:17 2011 +0100
@@ -617,7 +617,7 @@
   while (k > 1 && file_ops::is_dir_sep (dir[k-1]))
     k--;
 
-  if (k < dir.length ())
+  if (((size_t)(dir.length () - k)) > 0)
     dir.resize (k);
 
   return dir;

Updated test:
http://octave.1599824.n4.nabble.com/file/n3299519/test_sign.c test_sign.c 

Pascal
-- 
View this message in context: 
http://octave.1599824.n4.nabble.com/warnings-originating-in-gl2ps-update-tp3298345p3299519.html
Sent from the Octave - Maintainers mailing list archive at Nabble.com.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]