You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by ma...@apache.org on 2016/03/20 06:54:02 UTC
[08/14] lucy-clownfish git commit: Change CFCTest's INT_EQ to used
signed int.
Change CFCTest's INT_EQ to used signed int.
Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/74b7a06a
Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/74b7a06a
Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/74b7a06a
Branch: refs/heads/master
Commit: 74b7a06ae204119b3a7cbacd7281f2376b2de88a
Parents: d8eb00c
Author: Marvin Humphrey <ma...@rectangular.com>
Authored: Sat Mar 19 22:24:42 2016 -0700
Committer: Marvin Humphrey <ma...@rectangular.com>
Committed: Sat Mar 19 22:34:21 2016 -0700
----------------------------------------------------------------------
compiler/src/CFCTest.c | 6 +++---
compiler/src/CFCTest.h | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/74b7a06a/compiler/src/CFCTest.c
----------------------------------------------------------------------
diff --git a/compiler/src/CFCTest.c b/compiler/src/CFCTest.c
index a542c32..3e8cd41 100644
--- a/compiler/src/CFCTest.c
+++ b/compiler/src/CFCTest.c
@@ -271,7 +271,7 @@ CFCTest_test_string_equals(CFCTest *self, const char *result,
}
void
-CFCTest_test_int_equals(CFCTest *self, uint64_t result, uint64_t expected,
+CFCTest_test_int_equals(CFCTest *self, int64_t result, int64_t expected,
const char *fmt, ...) {
int cond = (result == expected);
@@ -281,8 +281,8 @@ CFCTest_test_int_equals(CFCTest *self, uint64_t result, uint64_t expected,
va_end(args);
if (!cond) {
- self->formatter->test_comment("Expected '%"PRIu64"',"
- " got '%"PRIu64"'.\n",
+ self->formatter->test_comment("Expected '%"PRId64"',"
+ " got '%"PRId64"'.\n",
expected, result);
}
}
http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/74b7a06a/compiler/src/CFCTest.h
----------------------------------------------------------------------
diff --git a/compiler/src/CFCTest.h b/compiler/src/CFCTest.h
index fd8bd30..a88418a 100644
--- a/compiler/src/CFCTest.h
+++ b/compiler/src/CFCTest.h
@@ -110,7 +110,7 @@ CFCTest_test_string_equals(CFCTest *self, const char *result,
* @param fmt printf-like format string describing the test.
*/
void
-CFCTest_test_int_equals(CFCTest *self, uint64_t result, uint64_t expected,
+CFCTest_test_int_equals(CFCTest *self, int64_t result, int64_t expected,
const char *fmt, ...);
/* Skip tests.