diff src/variables.cc @ 4280:3dc0815a2954

[project @ 2003-01-04 03:11:42 by jwe]
author jwe
date Sat, 04 Jan 2003 03:11:42 +0000
parents bdaa0d3dfc0b
children 05973ead74eb
line wrap: on
line diff
--- a/src/variables.cc
+++ b/src/variables.cc
@@ -835,7 +835,10 @@
 
   // It is a prorgramming error to look for builtins that aren't.
 
-  assert (sr);
+  // Use != here to avoid possible conversion to int of smaller type
+  // than the sr pointer.
+
+  assert (sr != 0);
 
   std::string retval;
 
@@ -859,7 +862,10 @@
 
   // It is a prorgramming error to look for builtins that aren't.
 
-  assert (sr);
+  // Use != here to avoid possible conversion to int of smaller type
+  // than the sr pointer.
+
+  assert (sr != 0);
 
   octave_value val = sr->def ();
 
@@ -881,7 +887,10 @@
 
   // It is a prorgramming error to look for builtins that aren't.
 
-  assert (sr);
+  // Use != here to avoid possible conversion to int of smaller type
+  // than the sr pointer.
+
+  assert (sr != 0);
 
   return sr->def ();
 }
@@ -1256,7 +1265,10 @@
   // It is a programming error for a builtin symbol to be missing.
   // Besides, we just inserted it, so it must be there.
 
-  assert (sr);
+  // Use != here to avoid possible conversion to int of smaller type
+  // than the sr pointer.
+
+  assert (sr != 0);
 
   sr->unprotect ();