Skip to content
Tcl Source Code View Ticket
Login

View Ticket

expr x**1 raising to power of 3 instead of 1

Closed / Fixed1555371fffffffffffffffffffffffffffffffffCreated 20 years agoUpdated 20 years ago
Descriptionplain2006-09-09 15:14:56
%expr 2**0
1
%expr 2**1
8
%expr 2**2
4
%expr 2**3
8

expected:
%expr 2**1
2

Also..
3**1 => 27
4**1 => 64
5**1 => 125
etc...

Occurs on both FreeBSD & Windows.
(also occurs in at least one 8.5a4 version)

0**1 & 1**1 seem ok.
dgpplain2006-09-10 10:20:36
Logged In: YES 
user_id=80530

confirmed
dgpplain2006-09-11 11:54:11
Logged In: YES 
user_id=80530

fix committed
dgp Closed ticket [1555371fff]. [History diff]2006-09-11 11:54:12
Log in (anonymous is fine) to add a comment.