comparison libinterp/corefcn/dirfns.cc @ 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 ce660f584f00
comparison
equal deleted inserted replaced
28096:e8246b4a5459 28097:cd7331af2e97
294 error ("rmdir: operation failed: %s", msg.c_str ()); 294 error ("rmdir: operation failed: %s", msg.c_str ());
295 } 295 }
296 else 296 else
297 { 297 {
298 if (status < 0) 298 if (status < 0)
299 retval = ovl (false, msg, "rmdir"); 299 retval = ovl (0.0, msg, "rmdir");
300 else 300 else
301 retval = ovl (true, "", ""); 301 retval = ovl (1.0, "", "");
302 } 302 }
303 303
304 return retval; 304 return retval;
305 } 305 }
306 306