Partial info/Octave compatibility fix: operator "|" never short-circuit, use "||" instead
parent
a3b30e885a
commit
d6c035aaea
|
@ -11,7 +11,7 @@
|
|||
% Joe Pearlman and Alejandro Justiniano
|
||||
% 3/5/2005
|
||||
% =================================================================
|
||||
if nargin == 2 | isempty( ch ) == 1
|
||||
if nargin == 2 || isempty( ch ) == 1
|
||||
flag_ch = 0;
|
||||
else
|
||||
flag_ch = 1;
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
% You should have received a copy of the GNU General Public License
|
||||
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
if nargin == 4 | isempty( ch ) == 1
|
||||
if nargin == 4 || isempty( ch ) == 1
|
||||
flag_ch = 0;
|
||||
else
|
||||
flag_ch = 1;
|
||||
|
|
Loading…
Reference in New Issue