aboutgitcodelistschat:MatrixIRC
path: root/cooker/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'cooker/parse.c')
-rw-r--r--cooker/parse.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cooker/parse.c b/cooker/parse.c
index 09b1e46..acb6810 100644
--- a/cooker/parse.c
+++ b/cooker/parse.c
@@ -38,14 +38,14 @@ static void handle_limit(struct gluten_ctx *g, JSON_Value *value)
static void handle_return(struct gluten_ctx *g, JSON_Value *value)
{
- (void)g;
- (void)value;
+ union value v = { .v_u64 = json_value_get_number(value) };
+
+ emit_return(g, emit_data(g, U64, sizeof(v.v_u64), &v));
}
static void handle_block(struct gluten_ctx *g, JSON_Value *value)
{
- (void)g;
- (void)value;
+ emit_block(g, json_value_get_number(value));
}
static void handle_context(struct gluten_ctx *g, JSON_Value *value)