fixed a format specifier bug for a string in moo_fmt_object_()

This commit is contained in:
hyunghwan.chung 2019-06-21 11:49:25 +00:00
parent 2cbfdfd6dd
commit a8c18f525b
2 changed files with 1 additions and 3 deletions

View File

@ -155,8 +155,6 @@ class MyObject(Object)
tb := tc at: idx.
System log(System.Log.INFO, idx asString, (if (tb value) { ' PASS' } else { ' FAIL' }), S'\n').
].
'AAAAAAAAAAAAAAAAAAAAAaa' dump.
}
}

View File

@ -1503,7 +1503,7 @@ int moo_fmt_object_ (moo_fmtout_t* fmtout, moo_oop_t oop)
}
else
{
if (moo_bfmt_out(fmtout, ((c == moo->_symbol)? "#%.*js": "'%.%js'"), MOO_OBJ_GET_SIZE(oop), MOO_OBJ_GET_CHAR_SLOT(oop)) <= -1) return -1;
if (moo_bfmt_out(fmtout, ((c == moo->_symbol)? "#%.*js": "'%.*js'"), MOO_OBJ_GET_SIZE(oop), MOO_OBJ_GET_CHAR_SLOT(oop)) <= -1) return -1;
}
}
else if (MOO_OBJ_GET_FLAGS_TYPE(oop) == MOO_OBJ_TYPE_BYTE)