diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-11-07 11:16:14 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-11-07 11:16:14 -0600 |
commit | 5c007fdbc49321101a8aad08336ad123c18559bb (patch) | |
tree | 5c01e9cd4bcffff1b9525edb64575bb8a93bc91e /apps/interpreters | |
parent | e5e9211805e01214224d39ac6e6346a38648af61 (diff) | |
download | px4-nuttx-5c007fdbc49321101a8aad08336ad123c18559bb.tar.gz px4-nuttx-5c007fdbc49321101a8aad08336ad123c18559bb.tar.bz2 px4-nuttx-5c007fdbc49321101a8aad08336ad123c18559bb.zip |
BAS: Needs CONFIG_LIBC_FLOATINGPOINT
Diffstat (limited to 'apps/interpreters')
-rw-r--r-- | apps/interpreters/bas/Kconfig | 1 | ||||
-rw-r--r-- | apps/interpreters/bas/str.c | 1 | ||||
-rw-r--r-- | apps/interpreters/bas/value.c | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/apps/interpreters/bas/Kconfig b/apps/interpreters/bas/Kconfig index 567ab289f..27c67ac70 100644 --- a/apps/interpreters/bas/Kconfig +++ b/apps/interpreters/bas/Kconfig @@ -8,6 +8,7 @@ config INTERPRETERS_BAS default n select SCHED_WAITPID select LIBC_EXECFUNCS + select LIBC_FLOATINGPOINT depends on FS_READABLE ---help--- This is a Basic interpreter written by Michael Haardt diff --git a/apps/interpreters/bas/str.c b/apps/interpreters/bas/str.c index fcab74a39..134cb0634 100644 --- a/apps/interpreters/bas/str.c +++ b/apps/interpreters/bas/str.c @@ -254,6 +254,7 @@ int String_appendChar(struct String *this, char ch) { String_leaveField(this); } + if (String_size(this, this->length + 1) == -1) { return -1; diff --git a/apps/interpreters/bas/value.c b/apps/interpreters/bas/value.c index 3f8c86c9e..db2ed1130 100644 --- a/apps/interpreters/bas/value.c +++ b/apps/interpreters/bas/value.c @@ -1719,6 +1719,7 @@ struct String *Value_toString(struct Value *this, struct String *s, char pad, { s->character[oldlength] = '$'; } + String_destroy(&buf); break; } |