Mercurial > vim
diff src/globals.h @ 9347:25c562442f8c v7.4.1955
commit https://github.com/vim/vim/commit/f4fba6dcd508cb369ffa6916d9cb3fcf3d7ed548
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jun 26 16:44:24 2016 +0200
patch 7.4.1955
Problem: Using 32-bit Perl with 64-bit time_t causes memory corruption.
(Christian Brabandt)
Solution: Use time_T instead of time_t for global variables. (Ken Takata)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 26 Jun 2016 16:45:05 +0200 |
parents | 636cfa97200e |
children | f048e5a27253 |
line wrap: on
line diff
--- a/src/globals.h +++ b/src/globals.h @@ -1608,7 +1608,7 @@ EXTERN int xsmp_icefd INIT(= -1); /* T #endif /* For undo we need to know the lowest time possible. */ -EXTERN time_t starttime; +EXTERN time_T starttime; #ifdef STARTUPTIME EXTERN FILE *time_fd INIT(= NULL); /* where to write startup timing */ @@ -1640,7 +1640,7 @@ EXTERN int did_add_timer INIT(= FALSE); #endif #ifdef FEAT_EVAL -EXTERN time_t time_for_testing INIT(= 0); +EXTERN time_T time_for_testing INIT(= 0); #endif /*