Compound arrays
This commit is contained in:
@@ -218,7 +218,7 @@ constexpr S128 U8_max() {return {0, U8MAX};}
|
||||
constexpr S128 U8_min() {return {};}
|
||||
|
||||
function B32
|
||||
is_out_of_bounds(S128 value, Ast_Resolved_Type *type){
|
||||
is_out_of_bounds(S128 value, Ast_Type *type){
|
||||
#define BOUNDS_CASE(T) case TYPE_##T: return (value < T##_min()) || (value > T##_max())
|
||||
switch(type->kind){
|
||||
BOUNDS_CASE(S8);
|
||||
|
||||
Reference in New Issue
Block a user