nuttx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xiaoxi...@apache.org
Subject [incubator-nuttx] 01/07: modlib: Don't truncate 64-bit values
Date Fri, 27 Mar 2020 05:04:48 GMT
This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit bd7829a44da56654a254dc3967f7266f27b63bc3
Author: YAMAMOTO Takashi <yamamoto@midokura.com>
AuthorDate: Thu Mar 26 15:44:54 2020 +0900

    modlib: Don't truncate 64-bit values
---
 libs/libc/modlib/modlib_symbols.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libs/libc/modlib/modlib_symbols.c b/libs/libc/modlib/modlib_symbols.c
index 0723e17..a3eed52 100644
--- a/libs/libc/modlib/modlib_symbols.c
+++ b/libs/libc/modlib/modlib_symbols.c
@@ -418,7 +418,7 @@ int modlib_symvalue(FAR struct module_s *modp,
               loadinfo->iobuffer, sym->st_value, symbol->sym_value,
               sym->st_value + symbol->sym_value);
 
-        sym->st_value += (Elf_Word)((uintptr_t)symbol->sym_value);
+        sym->st_value += ((uintptr_t)symbol->sym_value);
       }
       break;
 


Mime
View raw message