summaryrefslogtreecommitdiffstats
path: root/generic/tclCompile.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-06-30 09:12:01 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-06-30 09:12:01 (GMT)
commit1263f11ebf9408e23a7eb11de0022e2342b5b579 (patch)
tree90ff40cf725ed609216479fd95a0f72febf23f49 /generic/tclCompile.h
parent3ff431fb29793ecf1f0d29a40eaf1a95f8403321 (diff)
downloadtcl-1263f11ebf9408e23a7eb11de0022e2342b5b579.zip
tcl-1263f11ebf9408e23a7eb11de0022e2342b5b579.tar.gz
tcl-1263f11ebf9408e23a7eb11de0022e2342b5b579.tar.bz2
Eliminate "catch" as variable-name, is a keyword in C++. Also add some type-casts, making it more C++-friendly.
Diffstat (limited to 'generic/tclCompile.h')
-rw-r--r--generic/tclCompile.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclCompile.h b/generic/tclCompile.h
index 686b2dd..6b30f8b 100644
--- a/generic/tclCompile.h
+++ b/generic/tclCompile.h
@@ -529,7 +529,7 @@ typedef struct ByteCode {
do { \
const Tcl_ObjIntRep *irPtr; \
irPtr = TclFetchIntRep((objPtr), (typePtr)); \
- (codePtr) = irPtr ? irPtr->twoPtrValue.ptr1 : NULL; \
+ (codePtr) = irPtr ? (ByteCode*)irPtr->twoPtrValue.ptr1 : NULL; \
} while (0)
/*