Skip to content

Commit 798fbcb

Browse files
GeorgNeisCommit Bot
authored andcommitted
[compiler] Fix off-by-one error in kAdditiveSafeInteger
Bug: chromium:1198705 Change-Id: I6b3ad82754e1ca72701ce57f16c4f085f8c87f77 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2835705 Auto-Submit: Georg Neis <[email protected]> Commit-Queue: Nico Hartmann <[email protected]> Reviewed-by: Nico Hartmann <[email protected]> Cr-Commit-Position: refs/heads/master@{#74033}
1 parent df52b65 commit 798fbcb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/compiler/type-cache.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class V8_EXPORT_PRIVATE TypeCache final {
8080
Type::Union(kPositiveIntegerOrMinusZero, Type::NaN(), zone());
8181

8282
Type const kAdditiveSafeInteger =
83-
CreateRange(-4503599627370496.0, 4503599627370496.0);
83+
CreateRange(-4503599627370495.0, 4503599627370495.0);
8484
Type const kSafeInteger = CreateRange(-kMaxSafeInteger, kMaxSafeInteger);
8585
Type const kAdditiveSafeIntegerOrMinusZero =
8686
Type::Union(kAdditiveSafeInteger, Type::MinusZero(), zone());

0 commit comments

Comments
 (0)