Skip to content

Commit 7097a85

Browse files
authored
Merge pull request #70 from r-ralph/fix_error
Fix constant value definition
2 parents 65a7b01 + 295f074 commit 7097a85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apng-drawable/src/main/cpp/apng-drawbale/ApngDecoder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ std::unique_ptr<ApngImage> ApngDecoder::decode(
266266
&dispose_op,
267267
&blend_op);
268268
auto duration =
269-
static_cast<size_t>(std::lround(static_cast<float>(delay_num) / delay_den * 1000F));
269+
static_cast<size_t>(std::lround(static_cast<float>(delay_num) / delay_den * 1000.F));
270270
std::unique_ptr<ApngFrame> frame(new ApngFrame(size, duration));
271271
if (i == first) {
272272
blend_op = PNG_BLEND_OP_SOURCE;

0 commit comments

Comments
 (0)