comparison liboctave/oct-inttypes.h @ 5533:667ad2becb63

[project @ 2005-11-10 21:40:48 by jwe]
author jwe
date Thu, 10 Nov 2005 21:40:49 +0000
parents f608ac74f92c
children 22e23bee74c8
comparison
equal deleted inserted replaced
5532:8ad54ce6a831 5533:667ad2becb63
254 // what we should get with saturation semantics). 254 // what we should get with saturation semantics).
255 255
256 return std::numeric_limits<T>::is_signed ? 256 return std::numeric_limits<T>::is_signed ?
257 OCTAVE_INT_FIT_TO_RANGE (- static_cast<double> (ival), T) : 0; 257 OCTAVE_INT_FIT_TO_RANGE (- static_cast<double> (ival), T) : 0;
258 } 258 }
259
260 operator char (void) const { return static_cast<char> (value ()); }
259 261
260 operator double (void) const { return static_cast<double> (value ()); } 262 operator double (void) const { return static_cast<double> (value ()); }
261 263
262 operator float (void) const { return static_cast<float> (value ()); } 264 operator float (void) const { return static_cast<float> (value ()); }
263 265