Fix #10989 double pre-disasm (#11005)

This commit is contained in:
Khairul Azhar Kasmiran 2018-08-09 22:50:20 +08:00 committed by GitHub
parent dc5be0e089
commit 3353519bce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3668,8 +3668,8 @@ static void ds_print_ptr(RDisasmState *ds, int len, int idx) {
ds_comment (ds, true, "; -1");
} else if (((char)refaddr > 0) && refaddr >= '!' && refaddr <= '~') {
char ch = refaddr;
ds_begin_comment (ds);
if (ch != ds->chref) {
ds_begin_comment (ds);
ds_comment (ds, true, "; '%c'", ch);
}
} else if (refaddr > 10) {