From df13e350448ded6e68fc5856e376a0710806581b Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Thu, 25 Jun 2015 22:29:27 +0900 Subject: [PATCH] fix dictionary conviersion procedures --- extlib/benz/dict.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extlib/benz/dict.c b/extlib/benz/dict.c index 2e019f87..0c333811 100644 --- a/extlib/benz/dict.c +++ b/extlib/benz/dict.c @@ -256,7 +256,7 @@ pic_dict_dictionary_to_alist(pic_state *pic) pic_push(pic, item, alist); } - return pic_reverse(pic, alist); + return alist; } static pic_value @@ -288,11 +288,11 @@ pic_dict_dictionary_to_plist(pic_state *pic) pic_get_args(pic, "d", &dict); pic_dict_for_each (sym, dict, it) { - pic_push(pic, pic_obj_value(sym), plist); pic_push(pic, pic_dict_ref(pic, dict, sym), plist); + pic_push(pic, pic_obj_value(sym), plist); } - return pic_reverse(pic, plist); + return plist; } static pic_value