]> git.lizzy.rs Git - nothing.git/blobdiff - src/script/builtins.c
TODO(#395)
[nothing.git] / src / script / builtins.c
index 3d445792a00eca39c8a80da8cc13a0f6d62d9882..a60792bcc3431b6ab911451bd23cd6b65e81e527 100644 (file)
@@ -26,7 +26,8 @@ static bool equal_atoms(struct Atom *atom1, struct Atom *atom2)
         return strcmp(atom1->str, atom2->str) == 0;
 
     case ATOM_NATIVE:
-        return atom1->fun == atom2->fun;
+        return atom1->native.fun == atom2->native.fun
+            && atom1->native.param == atom2->native.param;
     }
 
     return false;