uppsrc: Fixed MSC warnings

This commit is contained in:
Mirek Fidler 2026-05-11 08:16:29 +02:00
parent 08953644b2
commit 2276cb79a0
2 changed files with 3 additions and 3 deletions

View file

@ -108,7 +108,7 @@ ImageIml Iml::GetRaw(int i)
Vector<ImageIml>& m = CreateRawValue<Vector<ImageIml>>(v);
m = UnpackImlData(d.data, d.len);
ASSERT(m.GetCount() == d.count);
int sz = 0;
size_t sz = 0;
int ii = i0;
for(ImageIml& img : m) {
sz += img.image.GetLength();
@ -118,7 +118,7 @@ ImageIml Iml::GetRaw(int i)
img.flags &= 0x3f;
flags[ii++] = img.flags;
}
return sz;
return (int)sz;
}
).To<Vector<ImageIml>>()[i - i0];
m.flags |= global_flags;

View file

@ -333,7 +333,7 @@ void AssistEditor::ConvertToOverrides()
bool hasfinal = false;
const char *q = SkipTrailingQualifiers(s + 1, hasfinal);
// Append everything up to insertion point
r.Cat(s + 1, q - (s + 1));
r.Cat(s + 1, int(q - (s + 1)));
// Insert override if not final
if(!hasfinal)
r.Cat(" override");