1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-26 13:17:40 +00:00

Replace cast with type pun.

This commit is contained in:
Calvin Rose
2018-11-18 14:17:50 -05:00
parent 69b6894f6b
commit 4c4eff9390
5 changed files with 43 additions and 2 deletions

View File

@@ -35,7 +35,7 @@ int janet_line_getter(JanetArgs args) {
static void simpleline(JanetBuffer *buffer) {
buffer->count = 0;
char c;
int c;
for (;;) {
c = fgetc(stdin);
if (feof(stdin) || c < 0) {