diff src/libvterm/src/state.c @ 14315:17ade2ec0616 v8.1.0173

patch 8.1.0173: compiler warning on MS-Windows commit https://github.com/vim/vim/commit/6259e5769dd50d8a3b5b99f553bab34ff5c8a6ce Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jul 9 20:39:17 2018 +0200 patch 8.1.0173: compiler warning on MS-Windows Problem: Compiler warning on MS-Windows. Solution: Add type cast. (Mike Williams)
author Christian Brabandt <cb@256bit.org>
date Mon, 09 Jul 2018 20:45:06 +0200
parents 2449b6ce1456
children 544490b69e1d
line wrap: on
line diff
--- a/src/libvterm/src/state.c
+++ b/src/libvterm/src/state.c
@@ -268,7 +268,7 @@ static int on_text(const char bytes[], s
   if(!npoints)
   {
     vterm_allocator_free(state->vt, codepoints);
-    return eaten;
+    return (int)eaten;
   }
 
   if(state->gsingle_set && npoints)