summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2011-03-27 11:35:40 +0200
committerSylvain Munaut <tnt@246tNt.com>2011-03-27 11:35:40 +0200
commitd6643d5fcf627d64cc3d7c385ba1cdd3981a8663 (patch)
tree05e3b5dff3e7a927c05deab73067090cf4286129
parent834193484439acd6056a891e9b2df5992a370088 (diff)
core/bits: Make sbit_t a signed type (so that the math works)
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
-rw-r--r--include/osmocom/core/bits.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/osmocom/core/bits.h b/include/osmocom/core/bits.h
index 8d4a078..eb22d07 100644
--- a/include/osmocom/core/bits.h
+++ b/include/osmocom/core/bits.h
@@ -3,7 +3,7 @@
#include <stdint.h>
-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) */