diff --git a/src/pebblisp.c b/src/pebblisp.c index 9634cdd..accd9af 100644 --- a/src/pebblisp.c +++ b/src/pebblisp.c @@ -242,7 +242,7 @@ Object _basicOp(const Object *obj1, const Object *obj2, const char op, return numberObject(n1 % n2); case '=': - if(obj1->type == TYPE_STRING || obj2->type == TYPE_STRING) + if(obj1->type == TYPE_STRING && obj2->type == TYPE_STRING) return boolObject(!strcmp(obj1->string, obj2->string)); if(obj1->type == TYPE_LIST && obj2->type == TYPE_LIST) return listEquality(obj1, obj2);