fix 32-bit build of translate_c.zig

This commit is contained in:
Andrew Kelley 2019-10-24 17:58:03 -04:00
parent 0e9f32d42b
commit 79cb383f7d
No known key found for this signature in database
GPG Key ID: 7C5F548F728501A9

View File

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