diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2018-11-27 20:56:43 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2018-11-27 20:56:43 -0500 |
| commit | dd2450b1b21809c3fe62920498c318fbe519f579 (patch) | |
| tree | 51f46cdc8f8ea0f4e642d62b3bf8fce58034362e /src/util.cpp | |
| parent | e3bf40742d5b93c10b8e68b202294badb508c3e7 (diff) | |
| download | zig-dd2450b1b21809c3fe62920498c318fbe519f579.tar.gz zig-dd2450b1b21809c3fe62920498c318fbe519f579.zip | |
tier 2 support for freebsd
Diffstat (limited to 'src/util.cpp')
| -rw-r--r-- | src/util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.cpp b/src/util.cpp index f7bda86c42..192d74e766 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -47,7 +47,7 @@ bool ptr_eq(const void *a, const void *b) { // Ported from std/mem.zig. bool SplitIterator_isSplitByte(SplitIterator *self, uint8_t byte) { for (size_t i = 0; i < self->split_bytes.len; i += 1) { - if (byte == self->split_bytes.ptr[i] || byte == 0) { + if (byte == self->split_bytes.ptr[i]) { return true; } } |
