BAS: Needs CONFIG_LIBC_FLOATINGPOINT

This commit is contained in:
Gregory Nutt 2014-11-07 11:16:14 -06:00
parent 25d3c0aaae
commit d7ada043d4
3 changed files with 3 additions and 0 deletions

View File

@ -8,6 +8,7 @@ config INTERPRETERS_BAS
default n default n
select SCHED_WAITPID select SCHED_WAITPID
select LIBC_EXECFUNCS select LIBC_EXECFUNCS
select LIBC_FLOATINGPOINT
depends on FS_READABLE depends on FS_READABLE
---help--- ---help---
This is a Basic interpreter written by Michael Haardt This is a Basic interpreter written by Michael Haardt

View File

@ -254,6 +254,7 @@ int String_appendChar(struct String *this, char ch)
{ {
String_leaveField(this); String_leaveField(this);
} }
if (String_size(this, this->length + 1) == -1) if (String_size(this, this->length + 1) == -1)
{ {
return -1; return -1;

View File

@ -1719,6 +1719,7 @@ struct String *Value_toString(struct Value *this, struct String *s, char pad,
{ {
s->character[oldlength] = '$'; s->character[oldlength] = '$';
} }
String_destroy(&buf); String_destroy(&buf);
break; break;
} }