diff src/defun.cc @ 11287:d81b79c1bd5d

fixes for --enable-64
author John W. Eaton <jwe@octave.org>
date Mon, 22 Nov 2010 03:27:41 -0500
parents f10d0bc8f9cc
children fd0a3ac60b0e
line wrap: on
line diff
--- a/src/defun.cc
+++ b/src/defun.cc
@@ -184,7 +184,8 @@
             isargout[k++] = false;
           else
             {
-              int l = std::min (k + p->numel (), nout);
+              int l = std::min (k + p->numel (),
+                                static_cast<octave_idx_type> (nout));
               while (k < l)
                 isargout[k++] = true;
             }