summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/dahdi/fasthdlc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/dahdi/fasthdlc.h b/include/dahdi/fasthdlc.h
index 20beeb6..6151907 100644
--- a/include/dahdi/fasthdlc.h
+++ b/include/dahdi/fasthdlc.h
@@ -414,7 +414,7 @@ static inline int fasthdlc_tx_run_nocheck(struct fasthdlc_state *h)
h->bits -= 7;
h->data <<= 7;
- return b << 1;
+ return ((b & 0x7f) << 1) | 1;
} else {
b = h->data >> 24;
h->bits -= 8;