NotImplemented == NotImplemented

This commit is contained in:
K. Lange 2022-07-03 11:14:19 +09:00
parent e39628bae1
commit 150a37f210

View File

@ -154,6 +154,7 @@ int krk_valuesEqual(KrkValue a, KrkValue b) {
switch (KRK_VAL_TYPE(a)) {
case KRK_VAL_BOOLEAN: return a == b;
case KRK_VAL_NONE: return 1; /* None always equals None */
case KRK_VAL_NOTIMPL: return 1;
case KRK_VAL_KWARGS: /* Equal if same number of args; may be useful for comparing sentinels (0) to arg lists. */
case KRK_VAL_INTEGER: return a == b;
case KRK_VAL_HANDLER: krk_runtimeError(vm.exceptions->valueError,"Invalid value"); return 0;