changeset 1:e80d7e8590a2

Irccd: invalid StackAssert in TypeInfo<PluginInfo>::push
author David Demelier <markand@malikania.fr>
date Tue, 09 Feb 2016 12:08:32 +0100
parents 1158cffe5a5e
children 3fe22529f66c
files irccd/plugin.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/irccd/plugin.cpp	Mon Feb 08 16:43:14 2016 +0100
+++ b/irccd/plugin.cpp	Tue Feb 09 12:08:32 2016 +0100
@@ -467,7 +467,7 @@
 
 void TypeInfo<PluginInfo>::push(Context &ctx, const PluginInfo &info)
 {
-	js::StackAssert sa(ctx);
+	js::StackAssert sa(ctx, 1);
 
 	ctx.push(js::Object{});
 	ctx.putProperty(-1, "name", info.name);