mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-18 20:02:22 -07:00
Update Tilde; mock out cg_build_return_stmt
128-bit types are broken
This commit is contained in:
@@ -31,7 +31,7 @@ gb_internal TB_DataType cg_data_type(Type *t) {
|
||||
case Basic_uint:
|
||||
case Basic_uintptr:
|
||||
case Basic_typeid:
|
||||
return TB_TYPE_INTN(cast(u16)(8*sz));
|
||||
return TB_TYPE_INTN(cast(u16)gb_min(8*sz, 64));
|
||||
|
||||
case Basic_f16: return TB_TYPE_F16;
|
||||
case Basic_f32: return TB_TYPE_F32;
|
||||
@@ -58,7 +58,7 @@ gb_internal TB_DataType cg_data_type(Type *t) {
|
||||
case Basic_u64be:
|
||||
case Basic_i128be:
|
||||
case Basic_u128be:
|
||||
return TB_TYPE_INTN(cast(u16)(8*sz));
|
||||
return TB_TYPE_INTN(cast(u16)gb_min(8*sz, 64));
|
||||
|
||||
case Basic_f16le: return TB_TYPE_F16;
|
||||
case Basic_f32le: return TB_TYPE_F32;
|
||||
|
||||
Reference in New Issue
Block a user