From b13ea096a93e2bd07a89e68fecd32485319a536d Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Tue, 17 Oct 2017 14:52:16 -0400 Subject: [PATCH] Fix: templates.py: call bt_piecewise_rshift() with _vtype (BE) Signed-off-by: Philippe Proulx --- barectf/templates.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/barectf/templates.py b/barectf/templates.py index 696a9dd..1f2278b 100644 --- a/barectf/templates.py +++ b/barectf/templates.py @@ -750,13 +750,13 @@ do { \\ cmask &= ~mask; \\ __ptr[this_unit] &= mask; \\ __ptr[this_unit] |= cmask; \\ - _$prefix$bt_piecewise_rshift(__v, cshift); \\ + _$prefix$bt_piecewise_rshift(_vtype, __v, cshift); \\ end -= cshift; \\ this_unit--; \\ } \\ for (; (long) this_unit >= (long) start_unit + 1; this_unit--) { \\ __ptr[this_unit] = (type) __v; \\ - _$prefix$bt_piecewise_rshift(__v, ts); \\ + _$prefix$bt_piecewise_rshift(_vtype, __v, ts); \\ end -= ts; \\ } \\ if (__start % ts) { \\ -- 2.34.1