- Implicitly convert from constant typeid to Type in $Type assignment, and $assignable.

- Make $Type parameters accept constant typeid values.
This commit is contained in:
Christoffer Lerno
2025-06-05 00:37:16 +02:00
parent ba1332dc2a
commit 7f85534414
16 changed files with 87 additions and 36 deletions

View File

@@ -191,7 +191,7 @@ const char[*] MAX_VARS @private = { [2] = 3, [4] = 5, [8] = 10 };
*>
macro usz? read_varint(stream, x_ptr)
{
var $Type = $typefrom($typeof(x_ptr).inner);
var $Type = $typeof(x_ptr).inner;
const MAX = MAX_VARS[$Type.sizeof];
$Type x;
uint shift;