Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
15389:0351fa7879f9 | 15390:00aa76a735e7 |
---|---|
1203 return FAIL; | 1203 return FAIL; |
1204 | 1204 |
1205 /* buffer-specific data */ | 1205 /* buffer-specific data */ |
1206 undo_write_bytes(bi, (long_u)buf->b_ml.ml_line_count, 4); | 1206 undo_write_bytes(bi, (long_u)buf->b_ml.ml_line_count, 4); |
1207 len = buf->b_u_line_ptr.ul_line == NULL | 1207 len = buf->b_u_line_ptr.ul_line == NULL |
1208 ? 0 : STRLEN(buf->b_u_line_ptr.ul_line); | 1208 ? 0L : (long)STRLEN(buf->b_u_line_ptr.ul_line); |
1209 undo_write_bytes(bi, (long_u)len, 4); | 1209 undo_write_bytes(bi, (long_u)len, 4); |
1210 if (len > 0 && fwrite_crypt(bi, buf->b_u_line_ptr.ul_line, (size_t)len) == FAIL) | 1210 if (len > 0 && fwrite_crypt(bi, buf->b_u_line_ptr.ul_line, (size_t)len) |
1211 == FAIL) | |
1211 return FAIL; | 1212 return FAIL; |
1212 undo_write_bytes(bi, (long_u)buf->b_u_line_lnum, 4); | 1213 undo_write_bytes(bi, (long_u)buf->b_u_line_lnum, 4); |
1213 undo_write_bytes(bi, (long_u)buf->b_u_line_colnr, 4); | 1214 undo_write_bytes(bi, (long_u)buf->b_u_line_colnr, 4); |
1214 | 1215 |
1215 /* Undo structures header data */ | 1216 /* Undo structures header data */ |