Mercurial > octave-nkf
diff src/gripes.cc @ 7997:2b8952e133c9
implement checked conversions between integers
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Wed, 30 Jul 2008 15:20:13 +0200 |
parents | fab9bc33b949 |
children | a4acda9fc3e7 |
line wrap: on
line diff
--- a/src/gripes.cc Wed Jul 30 14:13:45 2008 -0400 +++ b/src/gripes.cc Wed Jul 30 15:20:13 2008 +0200 @@ -204,6 +204,14 @@ "value not equal to 1 or 0 converted to logical 1"); } +extern void +gripe_truncated_conversion (const char *srctype, const char *desttype) +{ + warning_with_id ("Octave:truncated_conversion", + "data truncated converting from %s to %s", + srctype, desttype); +} + /* ;;; Local Variables: *** ;;; mode: C++ ***