diff options
author | Mike Pall <mike> | 2023-06-02 11:42:24 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2023-06-02 11:42:24 +0200 |
commit | 8e53ccc686541aebb44cb2e54489f943b86d8214 (patch) | |
tree | 8b6285210ff798d3e9d422438f19e4abb6032e4a /src/host | |
parent | 224129a8e64bfa219d35cd03055bf03952f167f6 (diff) | |
parent | 9f452bbef5031afc506d8615f5e720c45acd6fdf (diff) | |
download | luajit-8e53ccc686541aebb44cb2e54489f943b86d8214.tar.gz luajit-8e53ccc686541aebb44cb2e54489f943b86d8214.tar.bz2 luajit-8e53ccc686541aebb44cb2e54489f943b86d8214.zip |
Merge branch 'master' into v2.1
Diffstat (limited to 'src/host')
-rw-r--r-- | src/host/buildvm_lib.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/host/buildvm_lib.c b/src/host/buildvm_lib.c index 8914251e..ffc1b2ca 100644 --- a/src/host/buildvm_lib.c +++ b/src/host/buildvm_lib.c | |||
@@ -378,7 +378,8 @@ void emit_lib(BuildCtx *ctx) | |||
378 | char *p; | 378 | char *p; |
379 | /* Simplistic pre-processor. Only handles top-level #if/#endif. */ | 379 | /* Simplistic pre-processor. Only handles top-level #if/#endif. */ |
380 | if (buf[0] == '#' && buf[1] == 'i' && buf[2] == 'f') { | 380 | if (buf[0] == '#' && buf[1] == 'i' && buf[2] == 'f') { |
381 | int ok = 1, len = strlen(buf); | 381 | int ok = 1; |
382 | size_t len = strlen(buf); | ||
382 | if (buf[len-1] == '\n') { | 383 | if (buf[len-1] == '\n') { |
383 | buf[len-1] = 0; | 384 | buf[len-1] = 0; |
384 | if (buf[len-2] == '\r') { | 385 | if (buf[len-2] == '\r') { |