Mercurial > hg > octave-nkf
changeset 2801:a98f5a21f026
[project @ 1997-03-09 10:51:48 by jwe]
author | jwe |
---|---|
date | Sun, 09 Mar 1997 10:51:48 +0000 |
parents | 9aeba8e006a4 |
children | bca5fbab2e52 |
files | src/mappers.cc |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/mappers.cc +++ b/src/mappers.cc @@ -277,13 +277,14 @@ Complex ceil (const Complex& x) { - return Complex (real (x), imag (x)); + return Complex (ceil (real (x)), ceil (imag (x))); } Complex fix (const Complex& x) { - return Complex (real (x), imag (x)); + return Complex (static_cast<int> (real (x)), + static_cast<int> (imag (x))); } Complex