projects
/
osmocom-bb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8341934
)
core/bits: Make sbit_t a signed type (so that the math works)
author
Sylvain Munaut
<tnt@246tNt.com>
Sun, 27 Mar 2011 09:35:40 +0000
(11:35 +0200)
committer
Sylvain Munaut
<tnt@246tNt.com>
Sun, 27 Mar 2011 09:35:40 +0000
(11:35 +0200)
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
include/osmocom/core/bits.h
patch
|
blob
|
history
diff --git
a/include/osmocom/core/bits.h
b/include/osmocom/core/bits.h
index
8d4a078
..
eb22d07
100644
(file)
--- 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) */