From 8a7f61bf0176abaa1e59f20387d0dc271cf32807 Mon Sep 17 00:00:00 2001 From: "Sunrin SHIMURA (keen)" <3han5chou7@gmail.com> Date: Sun, 1 Feb 2015 12:25:48 +0000 Subject: [PATCH] use correct vars --- extlib/benz/codegen.c | 2 +- extlib/benz/include/picrin/xfile.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extlib/benz/codegen.c b/extlib/benz/codegen.c index 63f3ab87..0ccf59df 100644 --- a/extlib/benz/codegen.c +++ b/extlib/benz/codegen.c @@ -402,7 +402,7 @@ analyze_procedure(analyze_state *state, pic_value name, pic_value formals, pic_v pop_scope(state); } else { - pic_errorf(pic, "invalid formal syntax: ~s", args); + pic_errorf(pic, "invalid formal syntax: ~s", formals); } return pic_list7(pic, pic_obj_value(pic->sLAMBDA), name, args, locals, varg, captures, body); diff --git a/extlib/benz/include/picrin/xfile.h b/extlib/benz/include/picrin/xfile.h index 7011dcd1..8849fd04 100644 --- a/extlib/benz/include/picrin/xfile.h +++ b/extlib/benz/include/picrin/xfile.h @@ -622,7 +622,7 @@ xvfprintf(xFILE *stream, const char *fmt, va_list ap) case 'p': vp = va_arg(ap, void*); xfputs("0x", stream); - xfile_printint(stream, dval, 16); + xfile_printint(stream, (int)vp, 16); break; default: xputc(*(p-1), stream);