[Git][ghc/ghc][master] clarify comment for getSizeofMutableByteArray#: we get the size in bytes, not "elements"
Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC Commits: cf1fd661 by Artem Pelenitsyn at 2026-06-03T14:48:09-04:00 clarify comment for getSizeofMutableByteArray#: we get the size in bytes, not "elements" - - - - - 1 changed file: - compiler/GHC/Builtin/primops.txt.pp Changes: ===================================== compiler/GHC/Builtin/primops.txt.pp ===================================== @@ -2149,7 +2149,7 @@ primop SizeofMutableByteArrayOp "sizeofMutableByteArray#" GenPrimOp primop GetSizeofMutableByteArrayOp "getSizeofMutableByteArray#" GenPrimOp MutableByteArray# s -> State# s -> (# State# s, Int# #) - {Return the number of elements in the array, correctly accounting for + {Return the number of bytes in the array, correctly accounting for the effect of 'shrinkMutableByteArray#' and 'resizeMutableByteArray#'. @since 0.5.0.0} View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/cf1fd6615544bbd828c399ca9aee35d9... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/cf1fd6615544bbd828c399ca9aee35d9... You're receiving this email because of your account on gitlab.haskell.org.
participants (1)
-
Marge Bot (@marge-bot)