diff --git a/c2mir/c2mir.c b/c2mir/c2mir.c index f4e1114d25..1d0d98b2cb 100644 --- a/c2mir/c2mir.c +++ b/c2mir/c2mir.c @@ -2195,7 +2195,7 @@ static void add_include_stream (c2m_ctx_t c2m_ctx, const char *fname, const char static void skip_nl (c2m_ctx_t c2m_ctx, token_t t, VARR (token_t) * buffer) { /* skip until new line */ if (t == NULL) t = get_next_pptoken (c2m_ctx); - for (; t->code != '\n'; t = get_next_pptoken (c2m_ctx)) // ??> + for (; t->code != '\n' && t->code != T_EOU; t = get_next_pptoken (c2m_ctx)) // ??> if (buffer != NULL) VARR_PUSH (token_t, buffer, t); unget_next_pptoken (c2m_ctx, t); }