Add Script and Script Extension tests (#59194)

This commit is contained in:
Alejandro Alonso
2022-06-01 09:55:09 -07:00
committed by GitHub
parent d48c5fbbb1
commit c59f47389f
5 changed files with 4099 additions and 1 deletions

View File

@@ -115,7 +115,7 @@ __swift_intptr_t _swift_stdlib_getScalarBitArrayIdx(__swift_uint32_t scalar,
// If our chunk index is larger than the quick look indices, then it means
// our scalar appears in chunks who are all 0 and trailing.
if ((__swift_uint64_t) idx > quickLookSize) {
if ((__swift_uint64_t) idx > quickLookSize - 1) {
return std::numeric_limits<__swift_intptr_t>::max();
}