Skip to content

Instantly share code, notes, and snippets.

@bowbow99
Created December 15, 2011 10:13
Show Gist options
  • Save bowbow99/1480603 to your computer and use it in GitHub Desktop.
Save bowbow99/1480603 to your computer and use it in GitHub Desktop.
equalp に hash-table を渡すと返ってくる謎の多値 https://gist.github.com/1480046 を始末する #xyzzy
diff --git src/hash.cc src/hash.cc
index 3b8c55b..ad81b50 100644
--- src/hash.cc
+++ src/hash.cc
@@ -528,9 +528,13 @@ equalp (lhash_table *x, lhash_table *y)
{
lisp t = Fgethash (entry->key, y, Qnil);
if (Fequalp (entry->value, t) == Qnil)
- return 0;
+ {
+ multiple_value::clear();
+ return 0;
+ }
}
+ multiple_value::clear();
return 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment