diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2017-07-25 12:20:40 +0200 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2017-07-27 17:11:08 +0200 |
commit | 1b7372f2fb55f704b885e1097e2ec0381068c855 (patch) | |
tree | fe5ca729487cca97831c5bbd6edafd280a9c5814 /src/string_bytes.cc | |
parent | 1fa67c7fc2ef9fc226545f5de22c51964dbc27e1 (diff) | |
download | android-node-v8-1b7372f2fb55f704b885e1097e2ec0381068c855.tar.gz android-node-v8-1b7372f2fb55f704b885e1097e2ec0381068c855.tar.bz2 android-node-v8-1b7372f2fb55f704b885e1097e2ec0381068c855.zip |
src: replace ASSERT with CHECK
Builds always have asserts enabled so there is no point distinguishing
between debug-only checks and run-time checks. Replace calls to ASSERT
and friends with their CHECK counterparts.
Fixes: https://github.com/nodejs/node/issues/14461
PR-URL: https://github.com/nodejs/node/pull/14474
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Nikolai Vavilov <vvnicholas@gmail.com>
Reviewed-By: XadillaX <admin@xcoder.in>
Diffstat (limited to 'src/string_bytes.cc')
-rw-r--r-- | src/string_bytes.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string_bytes.cc b/src/string_bytes.cc index cbf30afc7a..5aa3b8ca77 100644 --- a/src/string_bytes.cc +++ b/src/string_bytes.cc @@ -321,7 +321,7 @@ size_t StringBytes::WriteUCS2(char* buf, uint16_t* aligned_dst = reinterpret_cast<uint16_t*>(buf + sizeof(*dst) - alignment); - ASSERT_EQ(reinterpret_cast<uintptr_t>(aligned_dst) % sizeof(*dst), 0); + CHECK_EQ(reinterpret_cast<uintptr_t>(aligned_dst) % sizeof(*dst), 0); // Write all but the last char nchars = str->Write(aligned_dst, 0, max_chars - 1, flags); |