mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 03:51:18 +00:00
Do not implicitly convert enums to ordinal in formatting functions.
This commit is contained in:
@@ -43,7 +43,6 @@ fn uint128? int_from_any(any arg, bool *is_neg) @private
|
||||
*is_neg = false;
|
||||
return (uint128)(uptr)*(void**)arg.ptr;
|
||||
case TypeKind.DISTINCT:
|
||||
case TypeKind.ENUM:
|
||||
return int_from_any(arg.as_inner(), is_neg);
|
||||
default:
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user