diff options
author | Yann Ylavic <ylavic@apache.org> | 2015-04-23 15:49:05 +0000 |
---|---|---|
committer | Yann Ylavic <ylavic@apache.org> | 2015-04-23 15:49:05 +0000 |
commit | 89e42a9c608a3bdf118d3cd1719e14c604645bd8 (patch) | |
tree | 3a17e958f614c2acd779adc07d52d7cd65662094 /test | |
parent | 27bf5031e217c1b4b5e049b4d33f301fc5d3b550 (diff) | |
download | apr-89e42a9c608a3bdf118d3cd1719e14c604645bd8.tar.gz |
testatomic: silence Sun compiler warning.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1675656 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test')
-rw-r--r-- | test/testatomic.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/testatomic.c b/test/testatomic.c index ca0398a29..b3862a8b0 100644 --- a/test/testatomic.c +++ b/test/testatomic.c @@ -205,7 +205,7 @@ static void test_wrap_zero(abts_case *tc, void *data) { apr_uint32_t y32; apr_uint32_t rv; - apr_uint32_t minus1 = -1; + apr_uint32_t minus1 = (apr_uint32_t)-1; char *str; apr_atomic_set32(&y32, 0); @@ -218,8 +218,8 @@ static void test_wrap_zero(abts_case *tc, void *data) static void test_inc_neg1(abts_case *tc, void *data) { - apr_uint32_t y32 = -1; - apr_uint32_t minus1 = -1; + apr_uint32_t y32 = (apr_uint32_t)-1; + apr_uint32_t minus1 = (apr_uint32_t)-1; apr_uint32_t rv; char *str; |