Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/aarch64/aarch64 PR/53338: David Binderman: Widen sh...
details: https://anonhg.NetBSD.org/src/rev/10680d2e8800
branches: trunk
changeset: 319592:10680d2e8800
user: christos <christos%NetBSD.org@localhost>
date: Sun Jun 03 20:18:10 2018 +0000
description:
PR/53338: David Binderman: Widen shift to the LHS type.
diffstat:
sys/arch/aarch64/aarch64/db_interface.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r fa7560c14343 -r 10680d2e8800 sys/arch/aarch64/aarch64/db_interface.c
--- a/sys/arch/aarch64/aarch64/db_interface.c Sun Jun 03 19:50:20 2018 +0000
+++ b/sys/arch/aarch64/aarch64/db_interface.c Sun Jun 03 20:18:10 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_interface.c,v 1.3 2018/05/31 09:37:16 ryo Exp $ */
+/* $NetBSD: db_interface.c,v 1.4 2018/06/03 20:18:10 christos Exp $ */
/*
* Copyright (c) 2017 Ryo Shimizu <ryo%nerv.org@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.3 2018/05/31 09:37:16 ryo Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.4 2018/06/03 20:18:10 christos Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -147,7 +147,7 @@
static inline uint64_t
SignExtend(int bitwidth, uint64_t imm, unsigned int multiply)
{
- const uint64_t signbit = (1 << (bitwidth - 1));
+ const uint64_t signbit = ((uint64_t)1 << (bitwidth - 1));
const uint64_t immmax = signbit << 1;
if (imm & signbit)
Home |
Main Index |
Thread Index |
Old Index