Skip to content

Commit

Permalink
use size_t for i
Browse files Browse the repository at this point in the history
  • Loading branch information
pca006132 committed Dec 24, 2024
1 parent c62ccf6 commit 6e4fe65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sdf/context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ Operand Context::addInstruction(OpCode op, Operand a, Operand b, Operand c) {
}

void Context::optimizeFMA() {
auto tryApply = [&](int i, Operand lhs, Operand rhs) {
auto tryApply = [&](size_t i, Operand lhs, Operand rhs) {
if (!lhs.isResult()) return false;
auto lhsInst = lhs.toInstIndex();
if (operations[lhsInst] != OpCode::MUL || opUses[lhsInst].size() != 1)
Expand Down

0 comments on commit 6e4fe65

Please sign in to comment.