Partial info/Octave compatibility fix: operator "|" never short-circuit, use "||" instead

time-shift
Sébastien Villemot 2010-10-11 16:47:36 +02:00
parent a3b30e885a
commit d6c035aaea
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;