@@ -207,7 +207,7 @@ static constexpr auto feature_masks = get_feature_masks(
207207#undef JL_FEATURE_DEF
208208 -1 );
209209static const auto real_feature_masks =
210- feature_masks & FeatureList<feature_sz>{{( uint32_t )- 1 , ( uint32_t )- 1 , 0 }};
210+ feature_masks & FeatureList<feature_sz>{{UINT32_MAX, UINT32_MAX , 0 }};
211211
212212namespace Feature {
213213enum : uint32_t {
@@ -473,7 +473,7 @@ static constexpr auto feature_masks = get_feature_masks(
473473#undef JL_FEATURE_DEF
474474 -1 );
475475static const auto real_feature_masks =
476- feature_masks & FeatureList<feature_sz>{{( uint32_t )- 1 , ( uint32_t )- 1 , 0 }};
476+ feature_masks & FeatureList<feature_sz>{{UINT32_MAX, UINT32_MAX , 0 }};
477477
478478namespace Feature {
479479enum : uint32_t {
@@ -1522,7 +1522,7 @@ static const llvm::SmallVector<TargetData<feature_sz>, 0> &get_cmdline_targets(v
15221522 }
15231523#endif
15241524 auto fbit = find_feature_bit (feature_names, nfeature_names, str, len);
1525- if (fbit == ( uint32_t )- 1 )
1525+ if (fbit == UINT32_MAX )
15261526 return false ;
15271527 set_bit (list, fbit, true );
15281528 return true ;
@@ -1603,7 +1603,7 @@ static uint32_t sysimg_init_cb(const void *id, jl_value_t **rejection_reason)
16031603 }
16041604 }
16051605 auto match = match_sysimg_targets (sysimg, target, max_vector_size, rejection_reason);
1606- if (match.best_idx == - 1 )
1606+ if (match.best_idx == UINT32_MAX )
16071607 return match.best_idx ;
16081608 // Now we've decided on which sysimg version to use.
16091609 // Make sure the JIT target is compatible with it and save the JIT target.
@@ -1865,7 +1865,7 @@ JL_DLLEXPORT jl_value_t* jl_check_pkgimage_clones(char *data)
18651865 JL_GC_PUSH1 (&rejection_reason);
18661866 uint32_t match_idx = pkgimg_init_cb (data, &rejection_reason);
18671867 JL_GC_POP ();
1868- if (match_idx == ( uint32_t )- 1 )
1868+ if (match_idx == UINT32_MAX )
18691869 return rejection_reason;
18701870 return jl_nothing;
18711871}
0 commit comments