Commit 100b97f
This PR addresses a change not up-streamed in #4822, which implements
(among others) the
`«padRightBytes(_,_,_)_BYTES-HOOKED_Bytes_Bytes_Int_Int»` and
`«padLeftBytes(_,_,_)_BYTES-HOOKED_Bytes_Bytes_Int_Int»` as
`Array.rightpad` and `Array.leftpad` respectively.
However, the length parameter passed to this functions was `Δ :=
len.toNat - b.size`, but it ought to be `len.toNat`, since these
functions pad to the maximum of the length provided.
Co-authored-by: automergerpr-permission-manager[bot] <190534181+automergerpr-permission-manager[bot]@users.noreply.github.com>
1 parent 8be1385 commit 100b97f
1 file changed
Lines changed: 2 additions & 4 deletions
File tree
- pyk/src/pyk/klean/template/{{ cookiecutter.package_name }}/{{ cookiecutter.library_name }}
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
285 | | - | |
286 | | - | |
| 285 | + | |
287 | 286 | | |
288 | 287 | | |
289 | 288 | | |
290 | 289 | | |
291 | 290 | | |
292 | 291 | | |
293 | | - | |
294 | | - | |
| 292 | + | |
295 | 293 | | |
296 | 294 | | |
297 | 295 | | |
| |||
0 commit comments