Skip to content

Commit f560504

Browse files
committed
fix demo 3d2 with pic data staying as float
1 parent 360b9fd commit f560504

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/PDL/Demos/TriD2.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ my @demo = (
6868
6969
# Lighten it up a bit so you see the background,
7070
# black on black is confusing
71-
$l = 0.3;
71+
$l = float(0.3); # so the type stays right
7272
sub lighten { $_[0] = ($_[0] + $l) / (1 + $l) }
7373
lighten($pic);
7474

0 commit comments

Comments
 (0)