Skip to content

Commit 1641188

Browse files
authored
Update cgutils.cpp
1 parent d1eef12 commit 1641188

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cgutils.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2402,7 +2402,7 @@ static jl_cgval_t emit_getfield_knownidx(jl_codectx_t &ctx, const jl_cgval_t &st
24022402

24032403
static bool field_may_be_null(const jl_cgval_t &strct, jl_datatype_t *stt, size_t idx)
24042404
{
2405-
ssize_t nfields = jl_datatype_nfields(stt);
2405+
size_t nfields = jl_datatype_nfields(stt);
24062406
if (idx < nfields - (unsigned)stt->name->n_uninitialized)
24072407
return false;
24082408
if (!jl_field_isptr(stt, idx) && !jl_type_hasptr(jl_field_type(stt, idx)))
@@ -2416,8 +2416,8 @@ static bool field_may_be_null(const jl_cgval_t &strct, jl_datatype_t *stt, size_
24162416

24172417
static bool field_may_be_null(const jl_cgval_t &strct, jl_datatype_t *stt)
24182418
{
2419-
ssize_t nfields = jl_datatype_nfields(stt);
2420-
for (size_t i = 0; i < stt->name->n_uninitialized; i++) {
2419+
size_t nfields = jl_datatype_nfields(stt);
2420+
for (size_t i = 0; i < (unsigned)stt->name->n_uninitialized; i++) {
24212421
size_t idx = nfields - i - 1;
24222422
if (field_may_be_null(strct, stt, idx))
24232423
return true;

0 commit comments

Comments
 (0)