diff src/undo.c @ 15390:00aa76a735e7 v8.1.0703

patch 8.1.0703: compiler warnings with 64-bit compiler commit https://github.com/vim/vim/commit/8aef43b66cf280c79a75d81f43ce5223b9044e63 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 8 20:14:35 2019 +0100 patch 8.1.0703: compiler warnings with 64-bit compiler Problem: Compiler warnings with 64-bit compiler. Solution: Change types, add type casts. (Mike Williams)
author Bram Moolenaar <Bram@vim.org>
date Tue, 08 Jan 2019 20:15:07 +0100
parents 58b125df3e9b
children 55ccc2d353bd
line wrap: on
line diff
--- a/src/undo.c
+++ b/src/undo.c
@@ -1205,9 +1205,10 @@ serialize_header(bufinfo_T *bi, char_u *
     /* buffer-specific data */
     undo_write_bytes(bi, (long_u)buf->b_ml.ml_line_count, 4);
     len = buf->b_u_line_ptr.ul_line == NULL
-				       ? 0 : STRLEN(buf->b_u_line_ptr.ul_line);
+				? 0L : (long)STRLEN(buf->b_u_line_ptr.ul_line);
     undo_write_bytes(bi, (long_u)len, 4);
-    if (len > 0 && fwrite_crypt(bi, buf->b_u_line_ptr.ul_line, (size_t)len) == FAIL)
+    if (len > 0 && fwrite_crypt(bi, buf->b_u_line_ptr.ul_line, (size_t)len)
+								       == FAIL)
 	return FAIL;
     undo_write_bytes(bi, (long_u)buf->b_u_line_lnum, 4);
     undo_write_bytes(bi, (long_u)buf->b_u_line_colnr, 4);