aboutsummaryrefslogtreecommitdiff
path: root/src/value.zig
diff options
context:
space:
mode:
authormlugg <mlugg@mlugg.co.uk>2023-11-14 09:10:53 +0000
committermlugg <mlugg@mlugg.co.uk>2023-11-19 11:11:49 +0000
commitb35589343894791a48b1423aa6d4a59b4858dfdb (patch)
tree62fb0542c4e49dd8748294bcfb75cf0c12fa5e23 /src/value.zig
parent172c2797bdd5f939e53acc26ea6820896e62733a (diff)
downloadzig-b35589343894791a48b1423aa6d4a59b4858dfdb.tar.gz
zig-b35589343894791a48b1423aa6d4a59b4858dfdb.zip
compiler: correct unnecessary uses of 'var'
Diffstat (limited to 'src/value.zig')
-rw-r--r--src/value.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/value.zig b/src/value.zig
index 6af43063d1..256b537573 100644
--- a/src/value.zig
+++ b/src/value.zig
@@ -2136,7 +2136,7 @@ pub const Value = struct {
lhs_bigint.limbs.len + rhs_bigint.limbs.len,
);
var result_bigint = BigIntMutable{ .limbs = limbs, .positive = undefined, .len = undefined };
- var limbs_buffer = try arena.alloc(
+ const limbs_buffer = try arena.alloc(
std.math.big.Limb,
std.math.big.int.calcMulLimbsBufferLen(lhs_bigint.limbs.len, rhs_bigint.limbs.len, 1),
);
@@ -2249,7 +2249,7 @@ pub const Value = struct {
),
);
var result_bigint = BigIntMutable{ .limbs = limbs, .positive = undefined, .len = undefined };
- var limbs_buffer = try arena.alloc(
+ const limbs_buffer = try arena.alloc(
std.math.big.Limb,
std.math.big.int.calcMulLimbsBufferLen(lhs_bigint.limbs.len, rhs_bigint.limbs.len, 1),
);
@@ -2788,7 +2788,7 @@ pub const Value = struct {
lhs_bigint.limbs.len + rhs_bigint.limbs.len,
);
var result_bigint = BigIntMutable{ .limbs = limbs, .positive = undefined, .len = undefined };
- var limbs_buffer = try allocator.alloc(
+ const limbs_buffer = try allocator.alloc(
std.math.big.Limb,
std.math.big.int.calcMulLimbsBufferLen(lhs_bigint.limbs.len, rhs_bigint.limbs.len, 1),
);