Skip to content

int i should match count, which is a CFIndex #5147

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update CFBigNumber.c
  • Loading branch information
AZero13 authored Dec 11, 2024
commit 670cbe6d8c0a4302ca5042834d8e28e5ec6e47c0
2 changes: 1 addition & 1 deletion Sources/CoreFoundation/CFBigNumber.c
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ uint8_t _CFBigNumAdd(_CFBigNum *r, const _CFBigNum *a, const _CFBigNum *b) {
bigNum = a;
smallNum = b;
}
for (CFIndex i = 0; i < sizeof(a->digits) / sizeof(a->digits[0]); i++) {
for (size_t i = 0; i < sizeof(a->digits) / sizeof(a->digits[0]); i++) {
int64_t result = (int64_t)bigNum->digits[i] - (int64_t)smallNum->digits[i] - carry;
if (result < 0) {
carry = 1;
Expand Down