aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--machine/mtrap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/machine/mtrap.c b/machine/mtrap.c
index dcff050..3cea874 100644
--- a/machine/mtrap.c
+++ b/machine/mtrap.c
@@ -77,7 +77,7 @@ static uintptr_t mcall_console_getchar()
} else if (htif) {
return htif_console_getchar();
} else {
- return '\0';
+ return (uintptr_t)-1;
}
}