Fix linux_spi.c build on 32bit systems
Corresponding to flashrom svn r1428.
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
diff --git a/linux_spi.c b/linux_spi.c
index fa6ec17..d120754 100644
--- a/linux_spi.c
+++ b/linux_spi.c
@@ -107,11 +107,11 @@
{
struct spi_ioc_transfer msg[2] = {
{
- .tx_buf = (uint64_t)txbuf,
+ .tx_buf = (uint64_t)(ptrdiff_t)txbuf,
.len = writecnt,
},
{
- .rx_buf = (uint64_t)rxbuf,
+ .rx_buf = (uint64_t)(ptrdiff_t)rxbuf,
.len = readcnt,
},
};