aboutsummaryrefslogtreecommitdiff
path: root/std/debug/index.zig
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-10-26 14:59:58 -0400
committerAndrew Kelley <superjoe30@gmail.com>2018-10-26 15:01:51 -0400
commit2b395d4ede2d8ef356c54e1c7c09da88c634be11 (patch)
treeddb9806afc26bc55554e20066b29d076bec71f79 /std/debug/index.zig
parent40b7652a6da135aed68a0067f2de60b8b276713c (diff)
downloadzig-2b395d4ede2d8ef356c54e1c7c09da88c634be11.tar.gz
zig-2b395d4ede2d8ef356c54e1c7c09da88c634be11.zip
remove @minValue,@maxValue; add std.math.minInt,maxInt
closes #1466 closes #1476
Diffstat (limited to 'std/debug/index.zig')
-rw-r--r--std/debug/index.zig5
1 files changed, 3 insertions, 2 deletions
diff --git a/std/debug/index.zig b/std/debug/index.zig
index e6d8fe3fc6..0508c17feb 100644
--- a/std/debug/index.zig
+++ b/std/debug/index.zig
@@ -11,6 +11,7 @@ const pdb = std.pdb;
const windows = os.windows;
const ArrayList = std.ArrayList;
const builtin = @import("builtin");
+const maxInt = std.math.maxInt;
pub const FailingAllocator = @import("failing_allocator.zig").FailingAllocator;
pub const failing_allocator = &FailingAllocator.init(global_allocator, 0).allocator;
@@ -842,7 +843,7 @@ fn readSparseBitVector(stream: var, allocator: *mem.Allocator) ![]usize {
if (word & (u32(1) << bit_i) != 0) {
try list.append(word_i * 32 + bit_i);
}
- if (bit_i == @maxValue(u5)) break;
+ if (bit_i == maxInt(u5)) break;
}
}
return list.toOwnedSlice();
@@ -1939,7 +1940,7 @@ fn findCompileUnit(st: *DebugInfo, target_address: u64) !*const CompileUnit {
if (begin_addr == 0 and end_addr == 0) {
break;
}
- if (begin_addr == @maxValue(usize)) {
+ if (begin_addr == maxInt(usize)) {
base_address = begin_addr;
continue;
}