translate-c: handle more wrapper types in isAnyopaque

This commit is contained in:
Veikka Tuominen
2023-03-02 12:48:13 +02:00
parent 0909f47f86
commit 72443fb88c
2 changed files with 17 additions and 1 deletions

View File

@@ -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;