mruby-compiler: add explicit cast to fix c++ compilation warning

cast uint8_t node_type field to enum node_type to satisfy c++ stricter
type checking while maintaining memory efficiency of 1-byte storage.

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Yukihiro "Matz" Matsumoto
2025-10-04 10:02:02 +09:00
parent 29e5be08e1
commit 01091984e7
+1 -1
View File
@@ -5572,7 +5572,7 @@ codegen(codegen_scope *s, node *tree, int val)
s->lineno = var_head->lineno;
/* Process variable-sized node directly */
enum node_type var_type = var_head->node_type;
enum node_type var_type = (enum node_type)var_head->node_type;
switch (var_type) {
case NODE_INT: