From e9a30faa89bc4de4179f8fdb52ea44120bf7b525 Mon Sep 17 00:00:00 2001 From: patthoyts Date: Mon, 24 Mar 2008 03:10:06 +0000 Subject: improved fix keeping short-circuit --- generic/tclBinary.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/generic/tclBinary.c b/generic/tclBinary.c index 2045d0f..baea4ba 100644 --- a/generic/tclBinary.c +++ b/generic/tclBinary.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclBinary.c,v 1.40 2008/03/24 02:50:52 patthoyts Exp $ + * RCS: @(#) $Id: tclBinary.c,v 1.41 2008/03/24 03:10:06 patthoyts Exp $ */ #include "tclInt.h" @@ -785,8 +785,10 @@ Tcl_BinaryObjCmd( if (!GetFormatSpec(&format, &cmd, &count, &flags)) { break; } - if ((count == 0) && !(cmd == '@' || cmd == 'x')) { - arg++; + if ((count == 0) && (cmd != '@')) { + if (cmd != 'x') { + arg++; + } continue; } switch (cmd) { -- cgit v0.12