poke-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 1/4] libpoke/pk-val.c: Fix the unit of offset to use uint<64>


From: Mohammad-Reza Nabipoor
Subject: [PATCH 1/4] libpoke/pk-val.c: Fix the unit of offset to use uint<64>
Date: Wed, 24 Mar 2021 02:03:07 +0430

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>`.
---
 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
-- 
2.31.0



reply via email to

[Prev in Thread] Current Thread [Next in Thread]