[segyio] 62/376: Consistent signedness comparison in tests.
Jørgen Kvalsvik
jokva-guest at moszumanska.debian.org
Wed Sep 20 08:04:08 UTC 2017
This is an automated email from the git hooks/post-receive script.
jokva-guest pushed a commit to branch debian
in repository segyio.
commit a819f95dca658ce73a223a21ce9cfa146b9f57bf
Author: Jørgen Kvalsvik <jokva at statoil.com>
Date: Wed Oct 19 14:21:16 2016 +0200
Consistent signedness comparison in tests.
---
tests/test_segyspec.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/test_segyspec.c b/tests/test_segyspec.c
index 5c1016b..acfb223 100644
--- a/tests/test_segyspec.c
+++ b/tests/test_segyspec.c
@@ -26,19 +26,19 @@ static void testSegyInspection() {
assertTrue(spec.sample_count == 50, "Expected sample count to be 50");
- for(int i = 0; i < spec.sample_count; i++) {
+ for(unsigned int i = 0; i < spec.sample_count; i++) {
double t = t0 + i * 4.0;
assertTrue(spec.sample_indexes[i] == t, "Sample index not equal to expected value");
}
assertTrue(spec.inline_count == 5, "Expect inline count to be 5");
- for(int i = 0; i < spec.inline_count; i++) {
+ for(unsigned int i = 0; i < spec.inline_count; i++) {
unsigned int il = spec.inline_indexes[i];
assertTrue(il >= 1 && il <= 5, "Expected inline index value to be between [1, 5]");
}
assertTrue(spec.crossline_count == 5, "Expect crossline count to be 5");
- for(int i = 0; i < spec.crossline_count; i++) {
+ for(unsigned int i = 0; i < spec.crossline_count; i++) {
unsigned int xl = spec.crossline_indexes[i];
assertTrue(xl >= 20 && xl <= 24, "Expected crossline index value to be between [20, 24]");
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/segyio.git
More information about the debian-science-commits
mailing list