Skip to content

Commit

Permalink
Fix implicit float to int conversion (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
HHaoWang authored Feb 27, 2024
1 parent 522408a commit 24a640b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions captcha-image.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ protected static function writeCurve() {
while ($i > 0) {
imagesetpixel(
self::$image,
$px + $i,
$py + $i,
$color
(int)($px + $i),
(int)($py + $i),
(int)$color
);
$i--;
}
Expand All @@ -162,9 +162,9 @@ protected static function writeCurve() {
while ($i > 0) {
imagesetpixel(
self::$image,
$px + $i,
$py + $i,
$color
(int)($px + $i),
(int)($py + $i),
(int)$color
);
$i--;
}
Expand Down

0 comments on commit 24a640b

Please sign in to comment.