From e82a4d6b7567f4a72204aa2655130e6f1881c4a7 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Jan 30 2020 07:55:54 +0000 Subject: Fix test issue on armv7hl. --- diff --git a/0001-Fix-test-1729-on-ppc64le.patch b/0001-Fix-test-1729-on-ppc64le.patch index e69322a..20813a4 100644 --- a/0001-Fix-test-1729-on-ppc64le.patch +++ b/0001-Fix-test-1729-on-ppc64le.patch @@ -1,7 +1,7 @@ From f02279985b388aeb5d9c58f6fb82fea423fd477b Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Wed, 13 Nov 2019 20:49:24 -0500 -Subject: [PATCH 1/2] Fix test 1729 on ppc64le. +Subject: [PATCH 1/3] Fix test 1729 on ppc64le. Signed-off-by: Elliott Sales de Andrade --- diff --git a/0002-Improve-fread-for-very-small-or-very-large-fp-number.patch b/0002-Improve-fread-for-very-small-or-very-large-fp-number.patch index 5430667..12254ad 100644 --- a/0002-Improve-fread-for-very-small-or-very-large-fp-number.patch +++ b/0002-Improve-fread-for-very-small-or-very-large-fp-number.patch @@ -1,7 +1,7 @@ From f4334c4ac845f811b4be531c921cb50dc77007d1 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Thu, 9 Jan 2020 01:06:25 -0500 -Subject: [PATCH 2/2] Improve `fread` for very small or very large fp numbers. +Subject: [PATCH 2/3] Improve `fread` for very small or very large fp numbers. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit diff --git a/0003-Use-consistent-types-with-fwriteMainArgs.nrow.patch b/0003-Use-consistent-types-with-fwriteMainArgs.nrow.patch new file mode 100644 index 0000000..08bd403 --- /dev/null +++ b/0003-Use-consistent-types-with-fwriteMainArgs.nrow.patch @@ -0,0 +1,99 @@ +From 79911aaf7cd877c0d25fccd5aaecdecd9a5d0204 Mon Sep 17 00:00:00 2001 +From: Elliott Sales de Andrade +Date: Thu, 30 Jan 2020 01:26:50 -0500 +Subject: [PATCH 3/3] 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. + +Signed-off-by: Elliott Sales de Andrade +--- + 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 b5ff08cd..93cbaf62 100644 +--- a/src/fwrite.c ++++ b/src/fwrite.c +@@ -620,7 +620,7 @@ void fwriteMain(fwriteMainArgs args) + for (int j=args.ncol-10; j