Skip to content

Commit 139fb51

Browse files
committed
use std::size_t
1 parent 3117482 commit 139fb51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cpp/cpp_typecheck_conversions.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1880,9 +1880,9 @@ bool cpp_typecheckt::cast_away_constness(
18801880
q2.write(newnt2);
18811881
snt2.back() = newnt2;
18821882

1883-
const int k = snt1.size() < snt2.size() ? snt1.size() : snt2.size();
1883+
const std::size_t k = snt1.size() < snt2.size() ? snt1.size() : snt2.size();
18841884

1885-
for(int i = k; i > 1; i--)
1885+
for(std::size_t i = k; i > 1; i--)
18861886
{
18871887
snt1[snt1.size()-2].subtype() = snt1[snt1.size()-1];
18881888
snt1.pop_back();

0 commit comments

Comments
 (0)