summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2005-11-01 16:18:15 (GMT)
committerdgp <dgp@users.sourceforge.net>2005-11-01 16:18:15 (GMT)
commit20a6d5a7afe92a3d2c19ab3a2588ecbf20442f9d (patch)
treeaa17eb2d41d73ab4940d51743a096e6f330b169d
parent6be14f61697812be0c6c88514b8ca2ae46b24c41 (diff)
downloadtcl-20a6d5a7afe92a3d2c19ab3a2588ecbf20442f9d.zip
tcl-20a6d5a7afe92a3d2c19ab3a2588ecbf20442f9d.tar.gz
tcl-20a6d5a7afe92a3d2c19ab3a2588ecbf20442f9d.tar.bz2
* tests/expr-old.test (expr-32.52): Use int(.) to restrict
result of left shift to the C long range.
-rw-r--r--ChangeLog5
-rw-r--r--tests/expr-old.test4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index f3d0f84..0b8c170 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-11-01 Don Porter <dgp@users.sourceforge.net>
+
+ * tests/expr-old.test (expr-32.52): Use int(.) to restrict
+ result of left shift to the C long range.
+
2005-10-29 Mo DeJong <mdejong@users.sourceforge.net>
* tests/expr.test: Fix problems in new round()
diff --git a/tests/expr-old.test b/tests/expr-old.test
index b984ba9..684ec01 100644
--- a/tests/expr-old.test
+++ b/tests/expr-old.test
@@ -13,7 +13,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: expr-old.test,v 1.16.2.3 2004/11/03 22:12:17 dgp Exp $
+# RCS: @(#) $Id: expr-old.test,v 1.16.2.4 2005/11/01 16:18:16 dgp Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2.1
@@ -826,7 +826,7 @@ test expr-old-32.51 {math functions in expressions} {
list [catch {expr {srand([lindex "6ty" 0])}} msg] $msg
} {1 {argument to math function didn't have numeric value}}
test expr-old-32.52 {math functions in expressions} {
- expr {srand(1<<37) < 1}
+ expr {srand(int(1<<37)) < 1}
} {1}
test expr-old-32.53 {math functions in expressions} {
expr {srand((1<<31) - 1) > 0}