Be more strict about what is a "string type".
Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/ba550db5 Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/ba550db5 Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/ba550db5 Branch: refs/heads/master Commit: ba550db5546412b391ea4fe413cac355e5627a1b Parents: 69b35c3 Author: Marvin Humphrey <[email protected]> Authored: Thu May 28 10:59:25 2015 -0700 Committer: Marvin Humphrey <[email protected]> Committed: Thu May 28 10:59:25 2015 -0700 ---------------------------------------------------------------------- compiler/src/CFCType.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/ba550db5/compiler/src/CFCType.c ---------------------------------------------------------------------- diff --git a/compiler/src/CFCType.c b/compiler/src/CFCType.c index 5684f50..ee04abf 100644 --- a/compiler/src/CFCType.c +++ b/compiler/src/CFCType.c @@ -182,7 +182,9 @@ CFCType_new_object(int flags, CFCParcel *parcel, const char *specifier, // Add flags. flags |= CFCTYPE_OBJECT; - if (strstr(specifier, "String")) { + if (strcmp(specifier, "String") == 0 + || strcmp(specifier, "cfish_String") == 0 + ) { // Determine whether this type is a string type. flags |= CFCTYPE_STRING_TYPE; }
