commit fdd44d34944a2af483accefd481ad7e544aad345
parent 79ee5e2f5c025da1f2b0c4dad23439514625a519
Author: phoebos <ben@bvnf.space>
Date: Mon, 31 Jan 2022 00:06:54 +0000
correct I, O behaviour
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/baddc.c b/baddc.c
@@ -74,7 +74,7 @@ void i_base(void) {
}
void I_base(void) {
- printf("%d\n", ibase);
+ push(ibase);
}
void o_base(void) {
@@ -82,7 +82,7 @@ void o_base(void) {
}
void O_base(void) {
- printf("%d\n", obase);
+ push(obase);
}
@@ -114,7 +114,7 @@ int main(void) {
int numready = 0;
int neg = 1;
while ((n = getline(&buf, &buflen, stdin)) != -1) {
- for (size_t i = 0; i < n - 1; i++) {
+ for (ssize_t i = 0; i < n - 1; i++) {
if (buf[i] == 'q')
goto end;
if (buf[i] == '_')