diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-05-28 21:54:01 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-28 21:54:01 -0400 |
| commit | c12704a3395a11c28569ebb160e6ac33091d983a (patch) | |
| tree | cf2e0055c53eac499b1fb66e2472a2036286afd6 /src/stage1/bigfloat.cpp | |
| parent | 3f5ca3920a58d44a018ff2a2e277e60813e20d5a (diff) | |
| parent | d888fa12a88ae7e5332de669b3c3a1dac57f5c19 (diff) | |
| download | zig-c12704a3395a11c28569ebb160e6ac33091d983a.tar.gz zig-c12704a3395a11c28569ebb160e6ac33091d983a.zip | |
Merge pull request #8918 from ziglang/stage1-tokenizer
stage1: rework tokenizer to match stage2
Diffstat (limited to 'src/stage1/bigfloat.cpp')
| -rw-r--r-- | src/stage1/bigfloat.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/stage1/bigfloat.cpp b/src/stage1/bigfloat.cpp index 840cdccc8b..56bf2637e3 100644 --- a/src/stage1/bigfloat.cpp +++ b/src/stage1/bigfloat.cpp @@ -69,7 +69,7 @@ void bigfloat_init_bigint(BigFloat *dest, const BigInt *op) { } } -Error bigfloat_init_buf(BigFloat *dest, const uint8_t *buf_ptr, size_t buf_len) { +Error bigfloat_init_buf(BigFloat *dest, const uint8_t *buf_ptr) { char *str_begin = (char *)buf_ptr; char *str_end; @@ -79,7 +79,6 @@ Error bigfloat_init_buf(BigFloat *dest, const uint8_t *buf_ptr, size_t buf_len) return ErrorOverflow; } - assert(str_end <= ((char*)buf_ptr) + buf_len); return ErrorNone; } |
