From b1443b480fe9965a6eaa9211657d299e88964084 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 13 Jan 2019 23:51:14 +0100 Subject: patch 8.1.0744: compiler warnings for signed/unsigned strings Problem: Compiler warnings for signed/unsigned strings. Solution: A few more type cast fixes. --- src/integration.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/integration.c') diff --git a/src/integration.c b/src/integration.c index a94581586..eb6ccda0a 100644 --- a/src/integration.c +++ b/src/integration.c @@ -303,7 +303,7 @@ messageFromEserve(XtPointer clientData UNUSED, char buffer[2*MAXPATHLEN]; vim_snprintf(buffer, sizeof(buffer), NOCATGETS("currentFile %d %s"), - f ? strlen(f) : 0, f ? f : ""); + f ? (int)strlen(f) : 0, f ? f : ""); workshop_send_message(buffer); } else if (strcmp(cmd, NOCATGETS("getCursorRow")) == 0) { int row = workshop_test_getcursorrow(); @@ -322,14 +322,14 @@ messageFromEserve(XtPointer clientData UNUSED, char buffer[2*MAXPATHLEN]; vim_snprintf(buffer, sizeof(buffer), NOCATGETS("cursorRowText %d %s"), - t ? strlen(t) : 0, t ? t : ""); + t ? (int)strlen(t) : 0, t ? t : ""); workshop_send_message(buffer); } else if (strcmp(cmd, NOCATGETS("getSelectedText")) == 0) { char *t = workshop_test_getselectedtext(); char buffer[2*MAXPATHLEN]; vim_snprintf(buffer, sizeof(buffer), NOCATGETS("selectedText %d %s"), - t ? strlen(t) : 0, t ? t : ""); + t ? (int)strlen(t) : 0, t ? t : ""); workshop_send_message(buffer); #endif } -- cgit v1.2.1