diff 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
line wrap: on
line diff
--- a/liboctave/oct-inttypes.h	Mon Nov 07 20:15:39 2005 +0000
+++ b/liboctave/oct-inttypes.h	Thu Nov 10 21:40:49 2005 +0000
@@ -257,6 +257,8 @@
       OCTAVE_INT_FIT_TO_RANGE (- static_cast<double> (ival), T) : 0;
   }
 
+  operator char (void) const { return static_cast<char> (value ()); }
+
   operator double (void) const { return static_cast<double> (value ()); }
 
   operator float (void) const { return static_cast<float> (value ()); }