Skip to content

Commit c973196

Browse files
authored
Fix missing cast warning (#471)
1 parent 234c8a4 commit c973196

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Source/astcenc_find_best_partitioning.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: Apache-2.0
22
// ----------------------------------------------------------------------------
3-
// Copyright 2011-2023 Arm Limited
3+
// Copyright 2011-2024 Arm Limited
44
//
55
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
66
// use this file except in compliance with the License. You may obtain a copy
@@ -425,8 +425,8 @@ static unsigned int get_partition_ordering_by_mismatch_bits(
425425
}
426426

427427
// Create a running sum from the histogram array
428-
// Cells store previous values only; i.e. exclude self after sum
429-
unsigned int sum = 0;
428+
// Indices store previous values only; i.e. exclude self after sum
429+
uint16_t sum = 0;
430430
for (unsigned int i = 0; i < texel_count; i++)
431431
{
432432
uint16_t cnt = mscount[i];

0 commit comments

Comments
 (0)