This is an automated email from the ASF dual-hosted git repository.
cdutz pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git
The following commit(s) were added to refs/heads/develop by this push:
new e83d2cec52 fix: Another attempt to fix the compilation issue of plc4c
on windows.
e83d2cec52 is described below
commit e83d2cec5265ca777a9da455a29a9bbdf9455f09
Author: Christofer Dutz <[email protected]>
AuthorDate: Thu Sep 18 19:01:41 2025 +0200
fix: Another attempt to fix the compilation issue of plc4c on windows.
---
plc4c/spi/src/write_buffer.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/plc4c/spi/src/write_buffer.c b/plc4c/spi/src/write_buffer.c
index 6e51d9358b..9699d8d531 100644
--- a/plc4c/spi/src/write_buffer.c
+++ b/plc4c/spi/src/write_buffer.c
@@ -320,7 +320,8 @@ plc4c_return_code
plc4c_spi_write_unsigned_short(plc4c_spi_write_buffer* buf,
return OUT_OF_RANGE;
}
// Write the bits.
- return plc4c_spi_write_unsigned_bits_internal(buf, num_bits, &value);
+ return plc4c_spi_write_unsigned_bits_internal(buf, num_bits,
+ (const uint8_t*)&value);
}
plc4c_return_code plc4c_spi_write_unsigned_int(plc4c_spi_write_buffer* buf,
@@ -331,7 +332,8 @@ plc4c_return_code
plc4c_spi_write_unsigned_int(plc4c_spi_write_buffer* buf,
return OUT_OF_RANGE;
}
// Write the bits.
- return plc4c_spi_write_unsigned_bits_internal(buf, num_bits, &value);
+ return plc4c_spi_write_unsigned_bits_internal(buf, num_bits,
+ (const uint8_t*)&value);
}
plc4c_return_code plc4c_spi_write_unsigned_long(plc4c_spi_write_buffer* buf,
@@ -342,7 +344,8 @@ plc4c_return_code
plc4c_spi_write_unsigned_long(plc4c_spi_write_buffer* buf,
return OUT_OF_RANGE;
}
// Write the bits.
- return plc4c_spi_write_unsigned_bits_internal(buf, num_bits, &value);
+ return plc4c_spi_write_unsigned_bits_internal(buf, num_bits,
+ (const uint8_t*)&value);
}
// TODO: Not sure which type to use in this case ...