@@ -207,7 +207,7 @@ static constexpr auto feature_masks = get_feature_masks(
207
207
#undef JL_FEATURE_DEF
208
208
-1 );
209
209
static 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 }};
211
211
212
212
namespace Feature {
213
213
enum : uint32_t {
@@ -473,7 +473,7 @@ static constexpr auto feature_masks = get_feature_masks(
473
473
#undef JL_FEATURE_DEF
474
474
-1 );
475
475
static 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 }};
477
477
478
478
namespace Feature {
479
479
enum : uint32_t {
@@ -1522,7 +1522,7 @@ static const llvm::SmallVector<TargetData<feature_sz>, 0> &get_cmdline_targets(v
1522
1522
}
1523
1523
#endif
1524
1524
auto fbit = find_feature_bit (feature_names, nfeature_names, str, len);
1525
- if (fbit == ( uint32_t )- 1 )
1525
+ if (fbit == UINT32_MAX )
1526
1526
return false ;
1527
1527
set_bit (list, fbit, true );
1528
1528
return true ;
@@ -1603,7 +1603,7 @@ static uint32_t sysimg_init_cb(const void *id, jl_value_t **rejection_reason)
1603
1603
}
1604
1604
}
1605
1605
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 )
1607
1607
return match.best_idx ;
1608
1608
// Now we've decided on which sysimg version to use.
1609
1609
// 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)
1865
1865
JL_GC_PUSH1 (&rejection_reason);
1866
1866
uint32_t match_idx = pkgimg_init_cb (data, &rejection_reason);
1867
1867
JL_GC_POP ();
1868
- if (match_idx == ( uint32_t )- 1 )
1868
+ if (match_idx == UINT32_MAX )
1869
1869
return rejection_reason;
1870
1870
return jl_nothing;
1871
1871
}
0 commit comments