Mercurial > hg > octave-lojdl
comparison liboctave/oct-inttypes.h @ 7177:57d2546ad8d5
[project @ 2007-11-14 22:21:35 by jwe]
author | jwe |
---|---|
date | Wed, 14 Nov 2007 22:21:36 +0000 |
parents | a1dbe9d80eee |
children | 4555c116b420 |
comparison
equal
deleted
inserted
replaced
7176:6525eb2fba0f | 7177:57d2546ad8d5 |
---|---|
247 // what we should get with saturation semantics). | 247 // what we should get with saturation semantics). |
248 | 248 |
249 return std::numeric_limits<T>::is_signed ? | 249 return std::numeric_limits<T>::is_signed ? |
250 OCTAVE_INT_FIT_TO_RANGE (- static_cast<double> (ival), T) : 0; | 250 OCTAVE_INT_FIT_TO_RANGE (- static_cast<double> (ival), T) : 0; |
251 } | 251 } |
252 | |
253 operator T (void) const { return value (); } | |
252 | 254 |
253 operator bool (void) const { return static_cast<bool> (value ()); } | 255 operator bool (void) const { return static_cast<bool> (value ()); } |
254 | 256 |
255 operator char (void) const { return static_cast<char> (value ()); } | 257 operator char (void) const { return static_cast<char> (value ()); } |
256 | 258 |