translate-c: handle more wrapper types in isAnyopaque
This commit is contained in:
@@ -3026,7 +3026,7 @@ pub fn addCases(cases: *tests.TranslateCContext) void {
|
||||
\\pub export fn log2(arg_a: u32) c_int {
|
||||
\\ var a = arg_a;
|
||||
\\ var i: c_int = 0;
|
||||
\\ while (a > @bitCast(c_uint, @as(c_int, 0))) {
|
||||
\\ while (a > @bitCast(u32, @as(c_int, 0))) {
|
||||
\\ a >>= @intCast(@import("std").math.Log2Int(c_int), @as(c_int, 1));
|
||||
\\ }
|
||||
\\ return i;
|
||||
|
||||
Reference in New Issue
Block a user