[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
scratch/igc 8976e7a4ae7: * src/igc.c (to_bytes): Fix for architectures o
From: |
Eli Zaretskii |
Subject: |
scratch/igc 8976e7a4ae7: * src/igc.c (to_bytes): Fix for architectures other than 64 bit. |
Date: |
Thu, 25 Apr 2024 06:24:12 -0400 (EDT) |
branch: scratch/igc
commit 8976e7a4ae755ad17f1c3eb05eaf1b04279c6edb
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>
* src/igc.c (to_bytes): Fix for architectures other than 64 bit.
Patch from Helmut Eller <eller.helmut@gmail.com>.
---
src/igc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/igc.c b/src/igc.c
index 96f51d47609..4cd49e9b070 100644
--- a/src/igc.c
+++ b/src/igc.c
@@ -263,7 +263,7 @@ to_words (mps_word_t nbytes)
static mps_word_t
to_bytes (mps_word_t nwords)
{
- return nwords << 3;
+ return nwords * sizeof (mps_word_t);
}
struct igc_fwd
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- scratch/igc 8976e7a4ae7: * src/igc.c (to_bytes): Fix for architectures other than 64 bit.,
Eli Zaretskii <=