From 8c4138ff4fb8a0e81da3dfc395165df408001885 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Thu, 30 Jan 2020 01:26:50 -0500 Subject: [PATCH] Use consistent types with fwriteMainArgs.nrow. On armv7hl, test 1737.5 fails due to garbage in the column length mismatch error message. This is because the message tries to format `args.nrow` (an `int64_t`) using `%d` (i.e., `int`). Strangely, this does not fail on any other architectures, but this is likely a fluke. In all the other formatting calls, remove the unnecessary `(int64_t)` type cast, since `fwriteMainArgs.nargs` already is one. --- src/fwrite.c | 6 +++--- src/fwriteR.c | 13 +++++++------ 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/fwrite.c b/src/fwrite.c index 33d84086bd..cf58c2581b 100644 --- a/src/fwrite.c +++ b/src/fwrite.c @@ -629,7 +629,7 @@ void fwriteMain(fwriteMainArgs args) for (int j=args.ncol-10; j