[glib/fix-glib-win32-test] glib/tests/win32.c: Fix test variable types



commit dbfcea3c7200ea2027433ee32546abd9eeb579e0
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Tue Jun 4 18:02:23 2019 +0800

    glib/tests/win32.c: Fix test variable types
    
    The variable types for the PID (bp) and event (be) are accidentally
    reversed in the test program.  Correct their types so that tests do not
    fail on Visual Studio x64 builds.
    
    Fixes issue #1797

 glib/tests/win32.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/glib/tests/win32.c b/glib/tests/win32.c
index d4b1fc5235..5ec5d8a27d 100644
--- a/glib/tests/win32.c
+++ b/glib/tests/win32.c
@@ -39,8 +39,8 @@ test_subst_pid_and_event (void)
   gchar debugger_enough[G_N_ELEMENTS (not_enough) + 1];
   gchar debugger_big[65535] = {0};
   gchar *output;
-  DWORD be = 0xFFFFFFFF;
-  guintptr bp = (guintptr) G_MAXSIZE;
+  guintptr be = (guintptr) 0xFFFFFFFF;
+  DWORD bp = G_MAXSIZE;
 
   /* %f is not valid */
   g_assert_false (_g_win32_subst_pid_and_event (debugger_3, G_N_ELEMENTS (debugger_3),


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]