Mercurial > hg > octave-lyh
comparison liboctave/oct-inttypes.h @ 5420:f608ac74f92c
[project @ 2005-07-25 21:32:51 by jwe]
author | jwe |
---|---|
date | Mon, 25 Jul 2005 21:32:51 +0000 |
parents | 4c8a2e4e0717 |
children | 667ad2becb63 |
comparison
equal
deleted
inserted
replaced
5419:cbcd2009c4be | 5420:f608ac74f92c |
---|---|
173 #define OCTAVE_S_US_FTR(T1, T2) \ | 173 #define OCTAVE_S_US_FTR(T1, T2) \ |
174 template <> \ | 174 template <> \ |
175 inline T2 \ | 175 inline T2 \ |
176 octave_int_fit_to_range<T1, T2> (const T1& x, const T2&, const T2&) \ | 176 octave_int_fit_to_range<T1, T2> (const T1& x, const T2&, const T2&) \ |
177 { \ | 177 { \ |
178 return x < 0 ? 0 : x; \ | 178 return x <= 0 ? 0 : x; \ |
179 } | 179 } |
180 | 180 |
181 #define OCTAVE_S_US_FTR_FCNS(T) \ | 181 #define OCTAVE_S_US_FTR_FCNS(T) \ |
182 OCTAVE_S_US_FTR (T, unsigned char) \ | 182 OCTAVE_S_US_FTR (T, unsigned char) \ |
183 OCTAVE_S_US_FTR (T, unsigned short) \ | 183 OCTAVE_S_US_FTR (T, unsigned short) \ |