[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/4] libpoke/pk-val.c: Fix the unit of offset to use uint<64>
From: |
Jose E. Marchesi |
Subject: |
Re: [PATCH 1/4] libpoke/pk-val.c: Fix the unit of offset to use uint<64> |
Date: |
Tue, 23 Mar 2021 22:44:19 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
> 2021-03-24 Mohammad-Reza Nabipoor <m.nabipoor@yahoo.com>
>
> * libpoke/pk-val.c (pk_val_offset): Fix the unit of offset to use
> `uint<64>` instead of `uint<32>`.
This is OK for both master and maint/poke-1.
Thanks!
> ---
> ChangeLog | 5 +++++
> libpoke/pk-val.c | 4 ++--
> 2 files changed, 7 insertions(+), 2 deletions(-)
>
> diff --git a/ChangeLog b/ChangeLog
> index 0f26fb27..d21e5cb2 100644
> --- a/ChangeLog
> +++ b/ChangeLog
> @@ -1,3 +1,8 @@
> +2021-03-24 Mohammad-Reza Nabipoor <m.nabipoor@yahoo.com>
> +
> + * libpoke/pk-val.c (pk_val_offset): Fix the unit of offset to use
> + `uint<64>` instead of `uint<32>`.
> +
> 2021-03-23 Jose E. Marchesi <jemarch@gnu.org>
>
> * poke/pk-mi-msg.def: New file.
> diff --git a/libpoke/pk-val.c b/libpoke/pk-val.c
> index efdc7372..2f530235 100644
> --- a/libpoke/pk-val.c
> +++ b/libpoke/pk-val.c
> @@ -159,10 +159,10 @@ pk_val_offset (pk_val val)
> bits. */
> if (bit_offset % 8 == 0)
> return pvm_make_offset (pvm_make_ulong (bit_offset / 8, 64),
> - pvm_make_ulong (8, 32));
> + pvm_make_ulong (8, 64));
> else
> return pvm_make_offset (PVM_VAL_OFFSET (val),
> - pvm_make_ulong (1, 32));
> + pvm_make_ulong (1, 64));
> }
>
> int