diff liboctave/dir-ops.h @ 3145:0d640dc625c7

[project @ 1998-02-05 08:44:59 by jwe]
author jwe
date Thu, 05 Feb 1998 08:45:07 +0000
parents 8b262e771614
children 5eef8a2294bd
line wrap: on
line diff
--- a/liboctave/dir-ops.h
+++ b/liboctave/dir-ops.h
@@ -58,7 +58,7 @@
 
   bool ok (void) const { return dir && ! fail; }
 
-  operator void* () const { return ok () ? (void *) -1 : (void *) 0; }
+  operator bool () const { return ok (); }
 
   string error (void) const { return ok () ? string () : errmsg; }