diff src/os_mswin.c @ 29130:247a6d944401 v8.2.5085

patch 8.2.5085: gcc gives warning for signed/unsigned difference Commit: https://github.com/vim/vim/commit/819ab82f7ee505d6fc4c6dc408e4b27c0fbe4a97 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jun 13 22:34:14 2022 +0100 patch 8.2.5085: gcc gives warning for signed/unsigned difference Problem: Gcc gives warning for signed/unsigned difference. Solution: Use a different pointer type. (John Marriott)
author Bram Moolenaar <Bram@vim.org>
date Mon, 13 Jun 2022 23:45:03 +0200
parents d8a962d7b008
children 2e6c9df8bea1
line wrap: on
line diff
--- a/src/os_mswin.c
+++ b/src/os_mswin.c
@@ -664,7 +664,7 @@ mch_suspend(void)
 display_errors(void)
 {
 # ifdef FEAT_GUI
-    char *p;
+    char_u *p;
 
 #  ifdef VIMDLL
     if (gui.in_use || gui.starting)
@@ -673,7 +673,7 @@ display_errors(void)
 	if (error_ga.ga_data != NULL)
 	{
 	    // avoid putting up a message box with blanks only
-	    for (p = (char *)error_ga.ga_data; *p; ++p)
+	    for (p = (char_u *)error_ga.ga_data; *p; ++p)
 		if (!isspace(*p))
 		{
 		    // Only use a dialog when not using --gui-dialog-file:
@@ -684,7 +684,7 @@ display_errors(void)
 					     VIM_ERROR,
 				     gui.starting ? (char_u *)_("Message") :
 					     (char_u *)_("Error"),
-				     (char_u *)p, (char_u *)_("&Ok"),
+					     p, (char_u *)_("&Ok"),
 					1, NULL, FALSE);
 		    break;
 		}