diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2011-12-28 18:12:21 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2011-12-28 18:12:21 +0200 |
commit | 23d37c1740baeaebefd8310c53b232904c1e1f77 (patch) | |
tree | 6e928ffdd4902fd844affbdf21c6ef3227017075 | |
parent | 73d24cae0db6cc817db209e5e1ea93b0733d1cca (diff) | |
download | egawk-23d37c1740baeaebefd8310c53b232904c1e1f77.tar.gz egawk-23d37c1740baeaebefd8310c53b232904c1e1f77.tar.bz2 egawk-23d37c1740baeaebefd8310c53b232904c1e1f77.zip |
Fix compiler warnings on printf calls.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | int_array.c | 2 | ||||
-rw-r--r-- | str_array.c | 2 |
3 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +2011-12-28 Arnold D. Robbins <arnold@skeeve.com> + + * int_array.c, str_array.c: Fix some compiler warnings 32/64 + bit system differences. + 2011-12-26 John Haque <j.eh@mchsi.com> Merge gawk, pgawk and dgawk into a single executable gawk. diff --git a/int_array.c b/int_array.c index 200431f9..6adb7633 100644 --- a/int_array.c +++ b/int_array.c @@ -584,7 +584,7 @@ int_dump(NODE *symbol, NODE *ndump) fprintf(output_fp, "flags: %s\n", flags2str(symbol->flags)); } indent(indent_level); - fprintf(output_fp, "INT_CHAIN_MAX: %lu\n", INT_CHAIN_MAX); + fprintf(output_fp, "INT_CHAIN_MAX: %lu\n", (unsigned long) INT_CHAIN_MAX); indent(indent_level); fprintf(output_fp, "array_size: %lu (int)\n", (unsigned long) symbol->array_size); indent(indent_level); diff --git a/str_array.c b/str_array.c index be431e5d..0b17796c 100644 --- a/str_array.c +++ b/str_array.c @@ -446,7 +446,7 @@ str_dump(NODE *symbol, NODE *ndump) fprintf(output_fp, "flags: %s\n", flags2str(symbol->flags)); } indent(indent_level); - fprintf(output_fp, "STR_CHAIN_MAX: %lu\n", STR_CHAIN_MAX); + fprintf(output_fp, "STR_CHAIN_MAX: %lu\n", (unsigned long) STR_CHAIN_MAX); indent(indent_level); fprintf(output_fp, "array_size: %lu\n", (unsigned long) symbol->array_size); indent(indent_level); |