mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
C++ compiler does not like cast from pointer to enum; ref #3039
This commit is contained in:
@@ -852,7 +852,7 @@ call_with_block(parser_state *p, node *a, node *b)
|
||||
{
|
||||
node *n;
|
||||
|
||||
switch ((enum node_type)a->car) {
|
||||
switch ((enum node_type)(intptr_t)a->car) {
|
||||
case NODE_SUPER:
|
||||
case NODE_ZSUPER:
|
||||
if (!a->cdr) a->cdr = cons(0, b);
|
||||
|
||||
Reference in New Issue
Block a user