[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CA+ZOyah0-d3diK2iaWXsoPsCS9T8pTfp5-gxOixfBvJYRVjdLQ@mail.gmail.com>
Date: Thu, 21 Jun 2018 15:12:45 +0800
From: Zong Li <zongbox@...il.com>
To: hch@...radead.org
Cc: Zong Li <zong@...estech.com>, linux-riscv@...ts.infradead.org,
Palmer Dabbelt <palmer@...ive.com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
aou@...s.berkeley.edu, greentime@...estech.com
Subject: Re: [PATCH 4/5] RISC-V: Change variable type for 32-bit compatible
> > - s64 offset = (void *)v - (void *)location;
> > + uintptr_t offset = (void *)v - (void *)location;
>
> s64 is signed, uintptr is not, so this might change behavior and needs
> an explanation.
>
Yes, it should be intptr_t. Thanks!
Powered by blists - more mailing lists