diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-11-07 08:41:17 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-11-07 08:41:17 (GMT) |
commit | 8665d6160812e8c89fef07e3510761c9b13147ff (patch) | |
tree | c4081adf9f50a9599dc40be6924bbc34bc1d675a /generic/tclCompile.c | |
parent | cbeadca7616cf2561c856e6bb03ab041b33d7a36 (diff) | |
download | tcl-8665d6160812e8c89fef07e3510761c9b13147ff.zip tcl-8665d6160812e8c89fef07e3510761c9b13147ff.tar.gz tcl-8665d6160812e8c89fef07e3510761c9b13147ff.tar.bz2 |
Silence MSVC C4090 warnings when using ckrealloc(). Also make sure that Tcl itself doesn't use ckalloc() and friends any more.
Diffstat (limited to 'generic/tclCompile.c')
-rw-r--r-- | generic/tclCompile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclCompile.c b/generic/tclCompile.c index a2dc7cb..59c5ba0 100644 --- a/generic/tclCompile.c +++ b/generic/tclCompile.c @@ -2169,7 +2169,7 @@ TclCompileScript( * many nested compilations (body enclosed in body) can cause abnormal * program termination with a stack overflow exception, bug [fec0c17d39]. */ - Tcl_Parse *parsePtr = ckalloc(sizeof(Tcl_Parse)); + Tcl_Parse *parsePtr = Tcl_Alloc(sizeof(Tcl_Parse)); do { const char *next; |