fix 32-bit build of translate_c.zig
This commit is contained in:
parent
0e9f32d42b
commit
79cb383f7d
@ -1123,7 +1123,7 @@ fn transCreateNodeAPInt(c: *Context, int: ?*const ZigClangAPSInt) !*ast.Node {
|
||||
var big = try std.math.big.Int.initCapacity(c.a(), num_limbs);
|
||||
defer big.deinit();
|
||||
const data = ZigClangAPSInt_getRawData(int.?);
|
||||
var i: usize = 0;
|
||||
var i: @typeOf(num_limbs) = 0;
|
||||
while (i < num_limbs) : (i += 1) big.limbs[i] = data[i];
|
||||
const str = big.toString(c.a(), 10) catch |err| switch (err) {
|
||||
error.OutOfMemory => return error.OutOfMemory,
|
||||
|
Loading…
x
Reference in New Issue
Block a user