You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by nw...@apache.org on 2013/09/28 19:33:11 UTC

[lucy-commits] [11/11] git commit: refs/heads/cfish-string-prep1 - Change String#Swap_Chars parameters to int32_t

Change String#Swap_Chars parameters to int32_t


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

Branch: refs/heads/cfish-string-prep1
Commit: b854f6bf6949f47ff8919b8a52f015fafdf0b012
Parents: 0cfbb06
Author: Nick Wellnhofer <we...@aevum.de>
Authored: Sat Sep 28 19:29:11 2013 +0200
Committer: Nick Wellnhofer <we...@aevum.de>
Committed: Sat Sep 28 19:29:11 2013 +0200

----------------------------------------------------------------------
 clownfish/runtime/core/Clownfish/String.c   | 2 +-
 clownfish/runtime/core/Clownfish/String.cfh | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy/blob/b854f6bf/clownfish/runtime/core/Clownfish/String.c
----------------------------------------------------------------------
diff --git a/clownfish/runtime/core/Clownfish/String.c b/clownfish/runtime/core/Clownfish/String.c
index ee5b283..6396dc9 100644
--- a/clownfish/runtime/core/Clownfish/String.c
+++ b/clownfish/runtime/core/Clownfish/String.c
@@ -228,7 +228,7 @@ Str_To_String_IMP(String *self) {
 }
 
 String*
-Str_Swap_Chars_IMP(String *self, uint32_t match, uint32_t replacement) {
+Str_Swap_Chars_IMP(String *self, int32_t match, int32_t replacement) {
     CharBuf *charbuf = CB_new(self->size);
     StackStringIterator *iter = STR_STACKTOP(self);
     int32_t code_point;

http://git-wip-us.apache.org/repos/asf/lucy/blob/b854f6bf/clownfish/runtime/core/Clownfish/String.cfh
----------------------------------------------------------------------
diff --git a/clownfish/runtime/core/Clownfish/String.cfh b/clownfish/runtime/core/Clownfish/String.cfh
index 4d18706..ff4047a 100644
--- a/clownfish/runtime/core/Clownfish/String.cfh
+++ b/clownfish/runtime/core/Clownfish/String.cfh
@@ -131,7 +131,7 @@ class Clownfish::String cnick Str
      * @return a new String with the characters replaced.
      */
     incremented String*
-    Swap_Chars(String *self, uint32_t match, uint32_t replacement);
+    Swap_Chars(String *self, int32_t match, int32_t replacement);
 
     public int64_t
     To_I64(String *self);