[Git][ghc/ghc][wip/js-boundsCheck] Apply 1 suggestion(s) to 1 file(s)

Josh Meredith (@JoshMeredith) gitlab at gitlab.haskell.org
Thu Apr 20 09:19:49 UTC 2023



Josh Meredith pushed to branch wip/js-boundsCheck at Glasgow Haskell Compiler / GHC


Commits:
ee9e4c4a by Sylvain Henry at 2023-04-20T09:19:47+00:00
Apply 1 suggestion(s) to 1 file(s)
- - - - -


1 changed file:

- rts/js/mem.js


Changes:

=====================================
rts/js/mem.js
=====================================
@@ -1465,6 +1465,7 @@ function h$getThreadLabel(t) {
 }
 
 function h$checkOverlapByteArray(a1, o1, a2, o2, n) {
+  if (n == 0) return true;
   if (a1 == a2) {
     if (o1 < o2) {
       return o1 + n - 1 < o2;



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/ee9e4c4afaca3322c7c789728dbfdffd3098d55f

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/ee9e4c4afaca3322c7c789728dbfdffd3098d55f
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20230420/927914a7/attachment.html>


More information about the ghc-commits mailing list