FIX CID 1134745, 1134746

This commit is contained in:
jvoisin 2014-04-29 02:56:19 +02:00
parent 5293da18b5
commit d63b4d0795
1 changed files with 6 additions and 3 deletions

View File

@ -30,9 +30,12 @@ R_API RAnalCond *r_anal_cond_clone(RAnalCond *cond) {
static inline const char *condstring(RAnalCond *cond) {
const char *condstr_single[] = { "!", "", "0<", "0<=", "0>", "0>=" };
const char *condstr[] = { "==", "!=", ">=", ">", "<=", "<" };
if (cond)
return (cond->arg[1])?condstr [cond->type%sizeof (condstr)]:
condstr_single [cond->type%sizeof (condstr_single)];
if (cond) {
if (cond->arg[1])
return condstr[cond->type % 6];
else
return condstr_single[cond->type % 6];
}
return "";
}