From: fennecdjay Date: Thu, 25 Apr 2019 07:45:18 +0000 (+0200) Subject: :bug: Fix push_spork_code X-Git-Tag: nightly~2528 X-Git-Url: http://10.11.0.4:5575/?a=commitdiff_plain;h=2e2bc2d1572a50f22b401083b7098e0b0d82fb66;p=gwion.git :bug: Fix push_spork_code --- diff --git a/include/plug.h b/include/plug.h index 32cbd810..e668cca3 100644 --- a/include/plug.h +++ b/include/plug.h @@ -9,8 +9,8 @@ enum plug_t { }; typedef struct PlugInfo_ { - struct Vector_ vec[GWPLUG_LAST]; struct Map_ drv; + struct Vector_ vec[GWPLUG_LAST]; } PlugInfo; ANN PlugInfo* new_plug(MemPool, Vector); diff --git a/src/emit/emit.c b/src/emit/emit.c index 2e32a673..a90554e8 100644 --- a/src/emit/emit.c +++ b/src/emit/emit.c @@ -915,7 +915,7 @@ static m_bool scoped_stmt(const Emitter emit, const Stmt stmt, const m_bool pop) static void push_spork_code(const Emitter emit, const m_str prefix, const loc_t pos) { char c[strlen(SPORK_FUNC_PREFIX) + num_digit(pos->first_line) + 1]; - sprintf(c, prefix, pos); + sprintf(c, prefix, pos->first_line); emit_push_code(emit, c); }