comparison src/integration.c @ 15472:0fcc1315c061 v8.1.0744

patch 8.1.0744: compiler warnings for signed/unsigned strings commit https://github.com/vim/vim/commit/b1443b480fe9965a6eaa9211657d299e88964084 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 13 23:51:14 2019 +0100 patch 8.1.0744: compiler warnings for signed/unsigned strings Problem: Compiler warnings for signed/unsigned strings. Solution: A few more type cast fixes.
author Bram Moolenaar <Bram@vim.org>
date Mon, 14 Jan 2019 00:00:04 +0100
parents 27b9a84395b5
children
comparison
equal deleted inserted replaced
15471:c3aa513f6b0b 15472:0fcc1315c061
301 } else if (strcmp(cmd, NOCATGETS("getCurrentFile")) == 0) { 301 } else if (strcmp(cmd, NOCATGETS("getCurrentFile")) == 0) {
302 char *f = workshop_test_getcurrentfile(); 302 char *f = workshop_test_getcurrentfile();
303 char buffer[2*MAXPATHLEN]; 303 char buffer[2*MAXPATHLEN];
304 vim_snprintf(buffer, sizeof(buffer), 304 vim_snprintf(buffer, sizeof(buffer),
305 NOCATGETS("currentFile %d %s"), 305 NOCATGETS("currentFile %d %s"),
306 f ? strlen(f) : 0, f ? f : ""); 306 f ? (int)strlen(f) : 0, f ? f : "");
307 workshop_send_message(buffer); 307 workshop_send_message(buffer);
308 } else if (strcmp(cmd, NOCATGETS("getCursorRow")) == 0) { 308 } else if (strcmp(cmd, NOCATGETS("getCursorRow")) == 0) {
309 int row = workshop_test_getcursorrow(); 309 int row = workshop_test_getcursorrow();
310 char buffer[2*MAXPATHLEN]; 310 char buffer[2*MAXPATHLEN];
311 vim_snprintf(buffer, sizeof(buffer), 311 vim_snprintf(buffer, sizeof(buffer),
320 } else if (strcmp(cmd, NOCATGETS("getCursorRowText")) == 0) { 320 } else if (strcmp(cmd, NOCATGETS("getCursorRowText")) == 0) {
321 char *t = workshop_test_getcursorrowtext(); 321 char *t = workshop_test_getcursorrowtext();
322 char buffer[2*MAXPATHLEN]; 322 char buffer[2*MAXPATHLEN];
323 vim_snprintf(buffer, sizeof(buffer), 323 vim_snprintf(buffer, sizeof(buffer),
324 NOCATGETS("cursorRowText %d %s"), 324 NOCATGETS("cursorRowText %d %s"),
325 t ? strlen(t) : 0, t ? t : ""); 325 t ? (int)strlen(t) : 0, t ? t : "");
326 workshop_send_message(buffer); 326 workshop_send_message(buffer);
327 } else if (strcmp(cmd, NOCATGETS("getSelectedText")) == 0) { 327 } else if (strcmp(cmd, NOCATGETS("getSelectedText")) == 0) {
328 char *t = workshop_test_getselectedtext(); 328 char *t = workshop_test_getselectedtext();
329 char buffer[2*MAXPATHLEN]; 329 char buffer[2*MAXPATHLEN];
330 vim_snprintf(buffer, sizeof(buffer), 330 vim_snprintf(buffer, sizeof(buffer),
331 NOCATGETS("selectedText %d %s"), 331 NOCATGETS("selectedText %d %s"),
332 t ? strlen(t) : 0, t ? t : ""); 332 t ? (int)strlen(t) : 0, t ? t : "");
333 workshop_send_message(buffer); 333 workshop_send_message(buffer);
334 #endif 334 #endif
335 } 335 }
336 HANDLE_ERRORS(cmd); 336 HANDLE_ERRORS(cmd);
337 break; 337 break;