diff liboctave/oct-inttypes.h @ 4963:573d23f9c9cf

[project @ 2004-09-03 15:43:29 by jwe]
author jwe
date Fri, 03 Sep 2004 15:43:30 +0000
parents 7a3a480e8645
children 269c3d6c0569
line wrap: on
line diff
--- a/liboctave/oct-inttypes.h	Thu Sep 02 16:56:17 2004 +0000
+++ b/liboctave/oct-inttypes.h	Fri Sep 03 15:43:30 2004 +0000
@@ -133,7 +133,7 @@
 inline T2
 octave_int_fit_to_range (const T1& x, const T2& mn, const T2& mx)
 {
-  return (x > mx ? mx : (x < mn ? mn : static_cast<T2> (x)));
+  return (x > mx ? mx : (x < mn ? mn : T2 (x)));
 }
 
 // If X is unsigned and the new type is signed, then we only have to