NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
port-mips/51384: src/sys/arch/mips/rmi/rmixl_intr.c:981: 32/64 bit mixup ?
>Number: 51384
>Category: port-mips
>Synopsis: src/sys/arch/mips/rmi/rmixl_intr.c:981: 32/64 bit mixup ?
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: port-mips-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Aug 01 15:40:00 +0000 2016
>Originator: David Binderman
>Release: cvs dated 20160801
>Organization:
>Environment:
>Description:
src/sys/arch/mips/rmi/rmixl_intr.c:981]: (style) int result is assigned to long variable.
Source code is
const uint64_t ipi_mask = 1 << (uintptr_t)arg;
Maybe better code
const uint64_t ipi_mask = 1ULL << (uintptr_t)arg;
>How-To-Repeat:
>Fix:
Home |
Main Index |
Thread Index |
Old Index