# HG changeset patch # User Jaroslav Hajek # Date 1223386125 -7200 # Node ID 9cb73236e5521df0e35a81b4179f98c145e1ecf6 # Parent 73d6b71788c066dcf57a810fee00b467ec1d0a60 fix uint64 mixed operations diff --git a/liboctave/ChangeLog b/liboctave/ChangeLog --- a/liboctave/ChangeLog +++ b/liboctave/ChangeLog @@ -1,3 +1,8 @@ +2008-10-07 Jaroslav Hajek + + * oct-inttypes.h (OCTAVE_INT_DOUBLE_BIN_OP): Change octave_int64 to + octave_uint64 where appropriate. + 2008-10-06 David Bateman * Sparse-op-defs.h (SPARSE_SMSM_CMP_OPS): Duplicate code for scalar diff --git a/liboctave/oct-inttypes.h b/liboctave/oct-inttypes.h --- a/liboctave/oct-inttypes.h +++ b/liboctave/oct-inttypes.h @@ -987,7 +987,7 @@ template <> \ inline octave_uint64 \ operator OP (const double& x, const octave_uint64& y) \ - { return octave_int64 (x OP static_cast (y.value ())); } \ + { return octave_uint64 (x OP static_cast (y.value ())); } \ template <> \ inline octave_int64 \ operator OP (const octave_int64& x, const double& y) \ @@ -995,7 +995,7 @@ template <> \ inline octave_uint64 \ operator OP (const octave_uint64& x, const double& y) \ - { return octave_int64 (static_cast (x.value ()) OP y); } + { return octave_uint64 (static_cast (x.value ()) OP y); } #else // external handlers