diff options
Diffstat (limited to 'examples/natmod/features2')
| -rw-r--r-- | examples/natmod/features2/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/natmod/features2/main.c b/examples/natmod/features2/main.c index de83bf2be..1a39700dc 100644 --- a/examples/natmod/features2/main.c +++ b/examples/natmod/features2/main.c @@ -52,7 +52,7 @@ STATIC mp_obj_t productf(mp_obj_fun_bc_t *self, size_t n_args, size_t n_kw, mp_o mp_buffer_info_t bufinfo; mp_get_buffer_raise(args[0], &bufinfo, MP_BUFFER_RW); if (bufinfo.typecode != 'f') { - mp_raise_ValueError("expecting float array"); + mp_raise_ValueError(MP_ERROR_TEXT("expecting float array")); } // Compute product, store result back in first element of array |
