From f6e05436275499ed48654602144ab2002039855c Mon Sep 17 00:00:00 2001 From: Andy Killorin <37423245+Speedy6451@users.noreply.github.com> Date: Sat, 19 Jul 2025 18:07:32 -0500 Subject: [PATCH] use unsigned types in header --- decoder/WIZ.txt | 1 + decoder/justfile | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 decoder/WIZ.txt diff --git a/decoder/WIZ.txt b/decoder/WIZ.txt new file mode 100644 index 0000000..3e74eca --- /dev/null +++ b/decoder/WIZ.txt @@ -0,0 +1 @@ +uint8_t=unsigned __int8;uint16_t=unsigned __int16;uint32_t=unsigned __int32;uint64_t=unsigned __int64;int8_t=__int8;int16_t=__int16;int32_t=__int32;int64_t=__int64 diff --git a/decoder/justfile b/decoder/justfile index a41c89c..733dcd2 100644 --- a/decoder/justfile +++ b/decoder/justfile @@ -6,10 +6,10 @@ build-win: build-lvheader build-lvheader: cbindgen --crate decoder --lang c --output decoderlib.h - sed -i 's/uint64_t/__int64/g' decoderlib.h - sed -i 's/uint32_t/__int32/g' decoderlib.h - sed -i 's/uint16_t/__int16/g' decoderlib.h - sed -i 's/uint8_t/__int8/g' decoderlib.h + sed -i 's/uint64_t/unsigned __int64/g' decoderlib.h + sed -i 's/uint32_t/unsigned __int32/g' decoderlib.h + sed -i 's/uint16_t/unsigned __int16/g' decoderlib.h + sed -i 's/uint8_t/unsigned __int8/g' decoderlib.h upload: build-win scp decoderlib.h hz:site/lvrs