gnucash maint: Fix build of jenny.c on 32-bit builds, mingw-w64.
John Ralls
jralls at code.gnucash.org
Thu Aug 23 14:50:23 EDT 2018
Updated via https://github.com/Gnucash/gnucash/commit/93f3a8ea (commit)
from https://github.com/Gnucash/gnucash/commit/54a5097c (commit)
commit 93f3a8ea8274862f776ed836ac99b50ea118a827
Author: John Ralls <jralls at ceridwen.us>
Date: Thu Aug 23 11:49:49 2018 -0700
Fix build of jenny.c on 32-bit builds, mingw-w64.
diff --git a/borrowed/jenny/jenny.c b/borrowed/jenny/jenny.c
index fb8254b..d82b10c 100644
--- a/borrowed/jenny/jenny.c
+++ b/borrowed/jenny/jenny.c
@@ -1019,10 +1019,12 @@ parse( int argc, char *argv[], state *s)
int i, j;
ub4 temp;
char *testfile = (char *)0;
+ /* Finesse differences in size_t between 32 and 64-bit builds. */
+ long feature_length = strlen(feature_name);
/* internal check: we have MAX_FEATURES names for features */
- if (strlen(feature_name) != MAX_FEATURES) {
- printf("feature_name length is wrong, %lu\n", strlen(feature_name));
+ if (feature_length != MAX_FEATURES) {
+ printf("feature_name length is wrong, %lu\n", feature_length);
return FALSE;
}
@@ -1098,7 +1100,7 @@ parse( int argc, char *argv[], state *s)
} /* for (each argument) if '-' */
if (s->n_final > s->ndim) {
- printf("jenny: %hhu-tuples are impossible with only %hu dimensions\n",
+ printf("jenny: %u-tuples are impossible with only %u dimensions\n",
s->n_final, s->ndim);
return FALSE;
}
Summary of changes:
borrowed/jenny/jenny.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
More information about the gnucash-changes
mailing list