changeset 23359:dd6ce1e09a4c

fix typo in previous change * hex2num.cc: Pass pointer to C string to "error", not std::string object.
author John W. Eaton <jwe@octave.org>
date Thu, 06 Apr 2017 15:16:19 -0400
parents 42bd10feedfa
children 7fbf0d4e48c9
files libinterp/corefcn/hex2num.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/hex2num.cc	Thu Apr 06 15:06:42 2017 -0400
+++ b/libinterp/corefcn/hex2num.cc	Thu Apr 06 15:16:19 2017 -0400
@@ -194,7 +194,7 @@
   else if (type == "double")
     retval = octave_value (hex2num<double> (val, swap_bytes));
   else
-    error ("hex2num: unrecognized CLASS '%s'", type);
+    error ("hex2num: unrecognized CLASS '%s'", type.c_str ());
 
   return retval;
 }