test cases/vala: Fix clang error during int to pointer coercion

```
clang [...] -c valaprog.p/GLib.Thread.c
../test cases/vala/5 target glib/GLib.Thread.vala:17:17: error: incompatible integer to pointer conversion passing 'gint' (aka 'int') to parameter of type 'gpointer' (aka 'void *') [-Wint-conversion]
        g_thread_exit (get_ret_code ());
                       ^~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gthread.h:158:66: note: passing argument to parameter 'retval' here
void            g_thread_exit                   (gpointer        retval);
                                                                 ^
1 error generated.
```
pull/11367/head
Nirbheek Chauhan 2 years ago committed by Xavier Claessens
parent 9bbceeee06
commit 301de27529
  1. 2
      test cases/vala/5 target glib/GLib.Thread.vala
  2. 4
      test cases/vala/5 target glib/retcode.c

@ -1,4 +1,4 @@
extern int get_ret_code ();
extern void * get_ret_code ();
public class MyThread : Object {
public int x_times { get; private set; }

@ -1,5 +1,5 @@
int
void *
get_ret_code (void)
{
return 42;
return (void *) (int) 42;
}

Loading…
Cancel
Save