aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2019-07-22 20:49:45 +0200
committerGitHub <noreply@github.com>2019-07-22 20:49:45 +0200
commitd7274f24171aad228be4e13f523cde8c2a2fa7f5 (patch)
tree9d894e5f5da9c003c1050c03bd3bddfa8451ac74
parent324dc0dbc090cbdef672adc50108b96de9369706 (diff)
downloadrneovim-d7274f24171aad228be4e13f523cde8c2a2fa7f5.tar.gz
rneovim-d7274f24171aad228be4e13f523cde8c2a2fa7f5.tar.bz2
rneovim-d7274f24171aad228be4e13f523cde8c2a2fa7f5.zip
shell-test: fix REP for count larger than uint8_t (#10581)
-rw-r--r--test/functional/fixtures/shell-test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/fixtures/shell-test.c b/test/functional/fixtures/shell-test.c
index 17ddec696c..f1357c5dbb 100644
--- a/test/functional/fixtures/shell-test.c
+++ b/test/functional/fixtures/shell-test.c
@@ -76,8 +76,8 @@ int main(int argc, char **argv)
fprintf(stderr, "Invalid count: %s\n", argv[2]);
return 4;
}
- for (uint8_t i = 0; i < count; i++) {
- printf("%d: %s\n", (int) i, argv[3]);
+ for (int i = 0; i < count; i++) {
+ printf("%d: %s\n", i, argv[3]);
fflush(stdout);
usleep(1000); // Wait 1 ms (simulate typical output).
}