@@ -203,7 +203,7 @@ static constexpr auto feature_masks = get_feature_masks(
203203#undef JL_FEATURE_DEF
204204 -1 );
205205static const auto real_feature_masks =
206- feature_masks & FeatureList<feature_sz>{{( uint32_t )- 1 , ( uint32_t )- 1 , 0 }};
206+ feature_masks & FeatureList<feature_sz>{{UINT32_MAX, UINT32_MAX , 0 }};
207207
208208namespace Feature {
209209enum : uint32_t {
@@ -461,7 +461,7 @@ static constexpr auto feature_masks = get_feature_masks(
461461#undef JL_FEATURE_DEF
462462 -1 );
463463static const auto real_feature_masks =
464- feature_masks & FeatureList<feature_sz>{{( uint32_t )- 1 , ( uint32_t )- 1 , 0 }};
464+ feature_masks & FeatureList<feature_sz>{{UINT32_MAX, UINT32_MAX , 0 }};
465465
466466namespace Feature {
467467enum : uint32_t {
@@ -1493,7 +1493,7 @@ static const std::vector<TargetData<feature_sz>> &get_cmdline_targets(void)
14931493 }
14941494#endif
14951495 auto fbit = find_feature_bit (feature_names, nfeature_names, str, len);
1496- if (fbit == ( uint32_t )- 1 )
1496+ if (fbit == UINT32_MAX )
14971497 return false ;
14981498 set_bit (list, fbit, true );
14991499 return true ;
@@ -1574,7 +1574,7 @@ static uint32_t sysimg_init_cb(const void *id, jl_value_t **rejection_reason)
15741574 }
15751575 }
15761576 auto match = match_sysimg_targets (sysimg, target, max_vector_size, rejection_reason);
1577- if (match.best_idx == - 1 )
1577+ if (match.best_idx == UINT32_MAX )
15781578 return match.best_idx ;
15791579 // Now we've decided on which sysimg version to use.
15801580 // Make sure the JIT target is compatible with it and save the JIT target.
@@ -1846,7 +1846,7 @@ JL_DLLEXPORT jl_value_t* jl_check_pkgimage_clones(char *data)
18461846 JL_GC_PUSH1 (&rejection_reason);
18471847 uint32_t match_idx = pkgimg_init_cb (data, &rejection_reason);
18481848 JL_GC_POP ();
1849- if (match_idx == ( uint32_t )- 1 )
1849+ if (match_idx == UINT32_MAX )
18501850 return rejection_reason;
18511851 return jl_nothing;
18521852}
0 commit comments