Преглед изворни кода

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

master
Ian Piumarta пре 2 година
родитељ
комит
eb85a1fb75
1 измењених фајлова са 2 додато и 0 уклоњено
  1. +2
    -0
      src/object.c

+ 2
- 0
src/object.c Прегледај датотеку

@ -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;

Loading…
Откажи
Сачувај