lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nwelln...@apache.org
Subject [lucy-commits] [5/6] git commit: refs/heads/cfish-string-prep1 - Switch String#Hash to SStrIter_Next_t
Date Mon, 30 Sep 2013 21:15:38 GMT
Switch String#Hash to SStrIter_Next_t

Now that method typedefs are fixed, we don't have to fetch the method
pointer form the implementing class.


Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/beee5ebb
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/beee5ebb
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/beee5ebb

Branch: refs/heads/cfish-string-prep1
Commit: beee5ebb529b6a64465556c3a84a65c90311db72
Parents: 8098c3a
Author: Nick Wellnhofer <wellnhofer@aevum.de>
Authored: Mon Sep 30 22:54:58 2013 +0200
Committer: Nick Wellnhofer <wellnhofer@aevum.de>
Committed: Mon Sep 30 23:13:31 2013 +0200

----------------------------------------------------------------------
 clownfish/runtime/core/Clownfish/String.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy/blob/beee5ebb/clownfish/runtime/core/Clownfish/String.c
----------------------------------------------------------------------
diff --git a/clownfish/runtime/core/Clownfish/String.c b/clownfish/runtime/core/Clownfish/String.c
index 6396dc9..41ecab2 100644
--- a/clownfish/runtime/core/Clownfish/String.c
+++ b/clownfish/runtime/core/Clownfish/String.c
@@ -202,10 +202,10 @@ Str_Hash_Sum_IMP(String *self) {
     uint32_t hashvalue = 5381;
     StackStringIterator *iter = STR_STACKTOP(self);
 
-    const StrIter_Next_t next
-        = METHOD_PTR(STRINGITERATOR, CFISH_StrIter_Next);
+    const SStrIter_Next_t next
+        = METHOD_PTR(STACKSTRINGITERATOR, CFISH_SStrIter_Next);
     int32_t code_point;
-    while (STRITER_DONE != (code_point = next((StringIterator*)iter))) {
+    while (STRITER_DONE != (code_point = next(iter))) {
         hashvalue = ((hashvalue << 5) + hashvalue) ^ code_point;
     }
 


Mime
View raw message