Docs, compatibility fixes again, 0.1 release
This commit is contained in:
parent
69262992ca
commit
7b0ba45346
15 changed files with 121 additions and 15 deletions
|
|
@ -231,7 +231,7 @@ static void fujson_fmt_obj(pTHX_ fujson_fmt_ctx *ctx, SV *rv, SV *obj) {
|
|||
static void fujson_fmt(pTHX_ fujson_fmt_ctx *ctx, SV *val) {
|
||||
SvGETMAGIC(val);
|
||||
|
||||
int r = fu_2bool(val);
|
||||
int r = fu_2bool(aTHX_ val);
|
||||
if (r != -1) { /* Must check SvISBOOL() before IOKp & POKp, because it implies both flags */
|
||||
if (r) fustr_write(ctx->out, "true", 4);
|
||||
else fustr_write(ctx->out, "false", 5);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue