tests: use GPOINTER_TO_INT to avoid warnings with mingw
authorVictor Toso <me@victortoso.com>
Thu, 17 Jan 2019 14:38:40 +0000 (15:38 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 19 Feb 2019 18:23:25 +0000 (18:23 +0000)
commit1012e3d89cfb50a88c7679a58de1adf4529c761c
tree9deb952dd114f547f4bf9f4bceb956c893e292b8
parentc7fe0ed637f94077f4ff8f78d404fb0d741024d6
tests: use GPOINTER_TO_INT to avoid warnings with mingw

New casts to avoid the the warnings mentioned below. While at it, move
some existing casts (introduced at 61bc9091894062b9) to use
GPOINTER_TO_INT too.

[458/673] Compiling C object 'tests/check/7d01337@@libs_video@exe/libs_video.c.obj'.
../tests/check/libs/video.c: In function 'fourcc_get_size':
../tests/check/libs/video.c:160:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
   return (unsigned long) p->endptr;
          ^

In file included from ../tests/check/libs/video.c:32:
../tests/check/libs/video.c: In function 'test_video_formats':
../tests/check/libs/video.c:563:39: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
   fail_unless_equals_int (size, (unsigned long) paintinfo.endptr);
   ^

And more.

https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/merge_requests/94
tests/check/libs/video.c