diff --git a/sys/ddb/db_expr.c b/sys/ddb/db_expr.c index c206a573e7cb..0b473735e3c9 100644 --- a/sys/ddb/db_expr.c +++ b/sys/ddb/db_expr.c @@ -261,7 +261,7 @@ db_shift_expr(db_expr_t *valuep) lhs <<= rhs; else { /* Shift right is unsigned */ - lhs = (unsigned) lhs >> rhs; + lhs = (db_addr_t)lhs >> rhs; } t = db_read_token(); }