diff options
| author | sommersoft <sommersoft@users.noreply.github.com> | 2018-03-30 14:27:39 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-03-30 14:27:39 -0500 |
| commit | 6ee573c7c9e4912de8c518df73af81dd8c2fd935 (patch) | |
| tree | 1baf37ee083406f978385c4b9b7cf0beb8adc1e1 /shared-module/struct | |
| parent | 6205ed9a0cf97ab8c0bf873d6cb1d7da4fd8accf (diff) | |
| parent | bee0d2edb44f2bfe9442749a4f15fff5572eab6b (diff) | |
Merge branch 'master' into super_status
Diffstat (limited to 'shared-module/struct')
| -rw-r--r-- | shared-module/struct/__init__.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/shared-module/struct/__init__.c b/shared-module/struct/__init__.c index e944f7738..eac41c9c3 100644 --- a/shared-module/struct/__init__.c +++ b/shared-module/struct/__init__.c @@ -33,9 +33,11 @@ #include "py/parsenum.h" void struct_validate_format(char fmt) { +#if MICROPY_NONSTANDARD_TYPECODES if( fmt == 'S' || fmt == 'O') { mp_raise_RuntimeError("'S' and 'O' are not supported format types"); } +#endif } char get_fmt_type(const char **fmt) { |
