changeset 28097:cd7331af2e97

rmdir: return numeric status value rather than boolean for Matlab compatibility. * dirfns.cc (Frmdir): Return 0.0 or 1.0 rather than false/true.
author Rik <rik@octave.org>
date Tue, 18 Feb 2020 15:20:47 -0800
parents e8246b4a5459
children 501553fcf6e2
files libinterp/corefcn/dirfns.cc
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/dirfns.cc	Tue Feb 18 15:17:32 2020 -0800
+++ b/libinterp/corefcn/dirfns.cc	Tue Feb 18 15:20:47 2020 -0800
@@ -296,9 +296,9 @@
   else
     {
       if (status < 0)
-        retval = ovl (false, msg, "rmdir");
+        retval = ovl (0.0, msg, "rmdir");
       else
-        retval = ovl (true, "", "");
+        retval = ovl (1.0, "", "");
     }
 
   return retval;