Ver a proveniência

Compare symbols by their name not by their address to prevent non-determinism.

master
Ian Piumarta há 2 anos
ascendente
cometimento
eb85a1fb75
1 ficheiros alterados com 2 adições e 0 eliminações
  1. +2
    -0
      src/object.c

+ 2
- 0
src/object.c Ver ficheiro

@ -427,6 +427,8 @@ int oopcmp(oop a, oop b)
}
case String:
return strcmp(get(a, String, value), get(b, String, value));
case Symbol:
return strcmp(get(a, Symbol, name), get(b, Symbol, name));
default: {
intptr_t l= (intptr_t)a, r= (intptr_t)b;
if (l < r) return -1;

Carregando…
Cancelar
Guardar