lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nwelln...@apache.org
Subject [lucy-commits] [42/50] [abbrv] git commit: refs/heads/master - Switch String#Hash to SStrIter_Next_t
Date Fri, 11 Oct 2013 13:32:20 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/94b9ae4f
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/94b9ae4f
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/94b9ae4f

Branch: refs/heads/master
Commit: 94b9ae4f365b28b263c3b8491ae504a65f9cab1e
Parents: 7dd4eeb
Author: Nick Wellnhofer <wellnhofer@aevum.de>
Authored: Mon Sep 30 22:54:58 2013 +0200
Committer: Nick Wellnhofer <wellnhofer@aevum.de>
Committed: Fri Oct 11 15:28:21 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/94b9ae4f/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