diff options
author | Haibo Huang <hhb@google.com> | 2019-06-10 15:47:49 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2019-06-10 15:47:49 -0700 |
commit | df3dc85d2ff9d18f15ff7a217a1ed52a3eb7b6bf (patch) | |
tree | 478f3db238be7e08885ac80ac8ef1be9935441bb /contrib/libtests/tarith.c | |
parent | 4813fb533a80d139fb8139369cd6c25947d1017d (diff) | |
parent | 54ca51b2ee6da088d5eb1c7ef6430b1c83019977 (diff) |
Merge "Merge tag 'v1.6.37' into HEAD" am: 7794b22253 am: aa0ce810a6 am: 490afb6c02
am: 54ca51b2ee
Change-Id: Ie28ab673ec855738e26ca3ba06a061856ca07045
Diffstat (limited to 'contrib/libtests/tarith.c')
-rw-r--r-- | contrib/libtests/tarith.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/libtests/tarith.c b/contrib/libtests/tarith.c index cb17ffa76..c03f05a80 100644 --- a/contrib/libtests/tarith.c +++ b/contrib/libtests/tarith.c @@ -108,7 +108,7 @@ int validation_ascii_to_fp(int count, int argc, char **argv) do { - png_size_t index; + size_t index; int state, failed = 0; char buffer[64]; @@ -176,7 +176,7 @@ int validation_ascii_to_fp(int count, int argc, char **argv) } else if (PNG_FP_IS_POSITIVE(state) && !(test > 0)) { - fprintf(stderr, "%g[%d] -> '%s' but postive value not so reported\n", + fprintf(stderr, "%g[%d] -> '%s' but positive value not so reported\n", test, precision, buffer); failed = 1; assert(!PNG_FP_IS_NEGATIVE(state)); @@ -329,10 +329,10 @@ static int check_one_character(checkfp_command *co, checkfp_control c, int ch) { /* Test this character (ch) to ensure the parser does the correct thing. */ - png_size_t index = 0; + size_t index = 0; const char test = (char)ch; - const int number_is_valid = png_check_fp_number(&test, 1, &c.state, &index); - const int character_accepted = (index == 1); + int number_is_valid = png_check_fp_number(&test, 1, &c.state, &index); + int character_accepted = (index == 1); if (c.check_state != exponent && isdigit(ch) && ch != '0') c.is_zero = 0; |