From d6643d5fcf627d64cc3d7c385ba1cdd3981a8663 Mon Sep 17 00:00:00 2001 From: Sylvain Munaut Date: Sun, 27 Mar 2011 11:35:40 +0200 Subject: core/bits: Make sbit_t a signed type (so that the math works) Signed-off-by: Sylvain Munaut --- include/osmocom/core/bits.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/osmocom/core') diff --git a/include/osmocom/core/bits.h b/include/osmocom/core/bits.h index 8d4a0789..eb22d07c 100644 --- a/include/osmocom/core/bits.h +++ b/include/osmocom/core/bits.h @@ -3,7 +3,7 @@ #include -typedef uint8_t sbit_t; /* soft bit (-127...127) */ +typedef int8_t sbit_t; /* soft bit (-127...127) */ typedef uint8_t ubit_t; /* unpacked bit (0 or 1) */ typedef uint8_t pbit_t; /* packed bis (8 bits in a byte) */ -- cgit v1.2.3