diff options
author | nijtmans <nijtmans@noemail.net> | 2011-01-18 10:02:02 (GMT) |
---|---|---|
committer | nijtmans <nijtmans@noemail.net> | 2011-01-18 10:02:02 (GMT) |
commit | 826a2c8dc74ce2233fc37d4fc366c7fc5405ba8e (patch) | |
tree | d024a01a23bca66395b5d830b9ff79ab3c1ea6a0 /generic/tclCompCmds.c | |
parent | b9737a30675c10440f9cd247c9989f2a82f19665 (diff) | |
download | tcl-826a2c8dc74ce2233fc37d4fc366c7fc5405ba8e.zip tcl-826a2c8dc74ce2233fc37d4fc366c7fc5405ba8e.tar.gz tcl-826a2c8dc74ce2233fc37d4fc366c7fc5405ba8e.tar.bz2 |
Various mismatches between Tcl_Panic format string and its arguments,
discovered thanks to [Bug 3159920]
FossilOrigin-Name: 6dd03122dc74cf6362ce00d9d5bb5e404775033f
Diffstat (limited to 'generic/tclCompCmds.c')
-rw-r--r-- | generic/tclCompCmds.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/generic/tclCompCmds.c b/generic/tclCompCmds.c index 5f25c59..934d63d 100644 --- a/generic/tclCompCmds.c +++ b/generic/tclCompCmds.c @@ -12,7 +12,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclCompCmds.c,v 1.143.2.4 2010/11/05 00:06:58 kennykb Exp $ + * RCS: @(#) $Id: tclCompCmds.c,v 1.143.2.5 2011/01/18 10:02:03 nijtmans Exp $ */ #include "tclInt.h" @@ -497,7 +497,7 @@ TclCompileCatchCmd( TclEmitForwardJump(envPtr, TCL_UNCONDITIONAL_JUMP, &jumpFixup); /* Stack at this point: ?script? <mark> result TCL_OK */ - /* + /* * Emit the "error case" epilogue. Push the interpreter result * and the return code. */ @@ -509,13 +509,13 @@ TclCompileCatchCmd( TclEmitOpcode(INST_PUSH_RETURN_CODE, envPtr); /* - * Update the target of the jump after the "no errors" code. + * Update the target of the jump after the "no errors" code. */ /* Stack at this point: ?script? result returnCode */ if (TclFixupForwardJumpToHere(envPtr, &jumpFixup, 127)) { Tcl_Panic("TclCompileCatchCmd: bad jump distance %d", - CurrentOffset(envPtr) - jumpFixup.codeOffset); + (int) (CurrentOffset(envPtr) - jumpFixup.codeOffset)); } /* Push the return options if the caller wants them */ @@ -573,7 +573,7 @@ TclCompileCatchCmd( TclEmitOpcode(INST_POP, envPtr); } - /* + /* * Stack is now ?script? result. Get rid of the subst'ed script * if it's hanging arond. */ @@ -583,7 +583,7 @@ TclCompileCatchCmd( TclEmitOpcode(INST_POP, envPtr); } - /* + /* * Result of all this, on either branch, should have been to leave * one operand -- the return code -- on the stack. */ @@ -1211,7 +1211,7 @@ TclCompileDictUpdateCmd( if (TclFixupForwardJumpToHere(envPtr, &jumpFixup, 127)) { Tcl_Panic("TclCompileDictCmd(update): bad jump distance %d", - CurrentOffset(envPtr) - jumpFixup.codeOffset); + (int) (CurrentOffset(envPtr) - jumpFixup.codeOffset)); } TclStackFree(interp, keyTokenPtrs); return TCL_OK; |