diff options
author | David Kalnischkies <kalnischkies@gmail.com> | 2011-10-11 13:05:40 +0200 |
---|---|---|
committer | David Kalnischkies <kalnischkies@gmail.com> | 2011-10-11 13:05:40 +0200 |
commit | fa4d3cdc8a60e71fd3fef1c2a2cda6f80377445b (patch) | |
tree | 7c87279097f1e4cb1bf76a2cf0f0cf4265928b9d /test/libapt | |
parent | 7cb28948317e0d326c8663ec3c9ce995d5bf65e8 (diff) |
fix compiler warning about signed comparision on amd64, too
Diffstat (limited to 'test/libapt')
-rw-r--r-- | test/libapt/assert.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/libapt/assert.h b/test/libapt/assert.h index ce5accc1c..a07be4b57 100644 --- a/test/libapt/assert.h +++ b/test/libapt/assert.h @@ -26,6 +26,18 @@ void assertEquals(int const &expect, unsigned int const &get, unsigned long cons assertEquals<unsigned int const&, unsigned int const&>(expect, get, line); } +void assertEquals(unsigned long const &expect, int const &get, unsigned long const &line) { + if (get < 0) + OutputAssertEqual(expect, "==", get, line); + assertEquals<unsigned long const&, unsigned long const&>(expect, get, line); +} + +void assertEquals(int const &expect, unsigned long const &get, unsigned long const &line) { + if (expect < 0) + OutputAssertEqual(expect, "==", get, line); + assertEquals<unsigned long const&, unsigned long const&>(expect, get, line); +} + #define equalsOr2(x,y,z) assertEqualsOr2(y, z, x, __LINE__) |