diff options
author | Yann Ylavic <ylavic@apache.org> | 2015-04-23 15:50:34 +0000 |
---|---|---|
committer | Yann Ylavic <ylavic@apache.org> | 2015-04-23 15:50:34 +0000 |
commit | cadd01f4dd8434cb3865c7e7dfe4f44d6caf3916 (patch) | |
tree | 705e3d6a53544f60b07480938cc18825f8182af5 /test | |
parent | 7dce1f836882933de5b6e3c65c3af34efdb8636b (diff) | |
download | apr-cadd01f4dd8434cb3865c7e7dfe4f44d6caf3916.tar.gz |
Merge r1675656 from trunk.
testatomic: silence Sun compiler warning.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1675660 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; |