libaml: fix fault when the second operand of comparison cannot be converted
This commit is contained in:
parent
de34481f8b
commit
b6fde0c7b9
1 changed files with 1 additions and 1 deletions
|
@ -1524,7 +1524,7 @@ cmp1(void *a, void *b)
|
|||
tag = TAG(a);
|
||||
if(b == nil || TAG(b) != tag)
|
||||
b = copy(tag, b);
|
||||
if(TAG(b) != tag)
|
||||
if(b == nil || TAG(b) != tag)
|
||||
return -1; /* botch */
|
||||
switch(tag){
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue