Permalink
Browse files

Fix DICT.__CMP__

  • Loading branch information...
1 parent fc9795b commit 0054a8ddeb62d8b0ae3d4a686253bd4867cf3c25 @metawilm committed Feb 6, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 runtime/classes.lisp
View
@@ -2191,9 +2191,9 @@ But if RELATIVE-TO package name is given, result may contains dots."
(py-raise '{KeyError} "Dict ~A has no such key: ~A." dict k))))
(def-py-method dict.__cmp__ (dict1 dict2)
- (if (dict.__eq__ dict1 dict2)
+ (if (py-val->lisp-bool (dict.__eq__ dict1 dict2))
0
- -1)) ;; XXX arbitrary: fix later
+ -1)) ;; XXX -1/+1 now arbitrary: fix later
(def-py-method dict.__eq__ (dict1 dict2)
(with-py-dict

0 comments on commit 0054a8d

Please sign in to comment.