comparison src/undo.c @ 16768:695d9ef00b03 v8.1.1386

patch 8.1.1386: unessesary type casts for lalloc() commit https://github.com/vim/vim/commit/18a4ba29aeccb9841d5bfdd2eaaffdfae2f15ced Author: Bram Moolenaar <Bram@vim.org> Date: Fri May 24 19:39:03 2019 +0200 patch 8.1.1386: unessesary type casts for lalloc() Problem: Unessesary type casts for lalloc(). Solution: Remove type casts. Change lalloc(size, TRUE) to alloc(size).
author Bram Moolenaar <Bram@vim.org>
date Fri, 24 May 2019 19:45:05 +0200
parents ef00b6bc186b
children ce04ebdf26b8
comparison
equal deleted inserted replaced
16767:3959544fc067 16768:695d9ef00b03
122 static void unserialize_pos(bufinfo_T *bi, pos_T *pos); 122 static void unserialize_pos(bufinfo_T *bi, pos_T *pos);
123 static void serialize_visualinfo(bufinfo_T *bi, visualinfo_T *info); 123 static void serialize_visualinfo(bufinfo_T *bi, visualinfo_T *info);
124 static void unserialize_visualinfo(bufinfo_T *bi, visualinfo_T *info); 124 static void unserialize_visualinfo(bufinfo_T *bi, visualinfo_T *info);
125 #endif 125 #endif
126 126
127 #define U_ALLOC_LINE(size) lalloc((long_u)(size), FALSE) 127 #define U_ALLOC_LINE(size) lalloc(size, FALSE)
128 128
129 /* used in undo_end() to report number of added and deleted lines */ 129 /* used in undo_end() to report number of added and deleted lines */
130 static long u_newcount, u_oldcount; 130 static long u_newcount, u_oldcount;
131 131
132 /* 132 /*
2011 corruption_error("end marker", file_name); 2011 corruption_error("end marker", file_name);
2012 goto error; 2012 goto error;
2013 } 2013 }
2014 2014
2015 #ifdef U_DEBUG 2015 #ifdef U_DEBUG
2016 uhp_table_used = (int *)alloc_clear( 2016 uhp_table_used = (int *)alloc_clear(sizeof(int) * num_head + 1);
2017 (unsigned)(sizeof(int) * num_head + 1));
2018 # define SET_FLAG(j) ++uhp_table_used[j] 2017 # define SET_FLAG(j) ++uhp_table_used[j]
2019 #else 2018 #else
2020 # define SET_FLAG(j) 2019 # define SET_FLAG(j)
2021 #endif 2020 #endif
2022 2021