Skip to content

Commit

Permalink
bump to 0.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
randy3k committed Jun 1, 2020
1 parent 404b78f commit f9ee2a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Type: Package
Package: collections
Title: High Performance Container Data Types
Version: 0.3.1.9999
Date: 2020-04-30
Version: 0.3.2
Date: 2020-06-01
Authors@R:
c(person(given = "Randy",
family = "Lai",
Expand Down
2 changes: 2 additions & 0 deletions src/dict.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ tommy_hash_t strhash(SEXP self, SEXP key) {
key_c = Rf_translateCharUTF8(c);
} else if (Rf_isVector(key)) {
key_c = digest(self, key);
} else if (Rf_isFunction(key)) {
key_c = digest(self, BODY(key));
} else {
const char* buf = R_alloc(sizeof(char), 30);
sprintf((char*) buf, "<%p>", key);
Expand Down

0 comments on commit f9ee2a7

Please sign in to comment.