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 e79362eff9 fix: Attempt to fix the compilation issue of plc4c on
windows.
e79362eff9 is described below
commit e79362eff9f1dc81b104420a90c30dc517ee8906
Author: Christofer Dutz <[email protected]>
AuthorDate: Thu Sep 18 18:50:46 2025 +0200
fix: Attempt to fix the compilation issue of plc4c on windows.
---
plc4c/spi/src/read_buffer.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/plc4c/spi/src/read_buffer.c b/plc4c/spi/src/read_buffer.c
index e64972ccee..13974fd407 100644
--- a/plc4c/spi/src/read_buffer.c
+++ b/plc4c/spi/src/read_buffer.c
@@ -328,7 +328,11 @@ plc4c_return_code
plc4c_spi_read_bit(plc4c_spi_read_buffer* buf, bool* value) {
}
plc4c_return_code plc4c_spi_read_char(plc4c_spi_read_buffer* buf, char* value)
{
- return plc4c_spi_read_signed_int(buf, 8, (int8_t*) value);
+ int32_t tmp;
+ plc4c_return_code rc = plc4c_spi_read_signed_int(buf, 8, &tmp);
+ if(rc != OK) return rc;
+ *value = (char) tmp;
+ return OK;
}
// Unsigned Integers ...