diff options
author | Hans Wolff <hanswolff@users.noreply.github.com> | 2013-12-04 13:09:11 +0400 |
---|---|---|
committer | Hans Wolff <hanswolff@users.noreply.github.com> | 2013-12-04 13:09:11 +0400 |
commit | a2f850e178a28dc698d7204f62e6bd60e6118f0e (patch) | |
tree | b357481f679e4aedabfc54caba4300c03120b9b9 /eglib | |
parent | 0d0f4ae035a40f88ab10ae626a9a6fc7fd792e0c (diff) |
Fixed missing pointer conversion tests in sizes.c
Unsigned pointer conversion was not tested at all (looks like a copy & paste mistake)
Diffstat (limited to 'eglib')
-rw-r--r-- | eglib/test/sizes.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/eglib/test/sizes.c b/eglib/test/sizes.c index 585cc113779..06ed8a5af2b 100644 --- a/eglib/test/sizes.c +++ b/eglib/test/sizes.c @@ -60,22 +60,22 @@ test_ptrconv () return FAILED ("int to pointer and back conversions fail %d != %d", iv, iv2); uv = 0; - ptr = GUINT_TO_POINTER (iv); + ptr = GUINT_TO_POINTER (uv); uv2 = GPOINTER_TO_UINT (ptr); - if (iv != iv2) - return FAILED ("uint to pointer and back conversions fail %u != %d", iv, iv2); + if (uv != uv2) + return FAILED ("uint to pointer and back conversions fail %u != %d", uv, uv2); uv = 1; - ptr = GUINT_TO_POINTER (iv); + ptr = GUINT_TO_POINTER (uv); uv2 = GPOINTER_TO_UINT (ptr); - if (iv != iv2) - return FAILED ("uint to pointer and back conversions fail %u != %d", iv, iv2); + if (uv != uv2) + return FAILED ("uint to pointer and back conversions fail %u != %d", uv, uv2); uv = UINT32_MAX; - ptr = GUINT_TO_POINTER (iv); + ptr = GUINT_TO_POINTER (uv); uv2 = GPOINTER_TO_UINT (ptr); - if (iv != iv2) - return FAILED ("uint to pointer and back conversions fail %u != %d", iv, iv2); + if (uv != uv2) + return FAILED ("uint to pointer and back conversions fail %u != %d", uv, uv2); return NULL; |