# HG changeset patch # User Paul Boddie # Date 1706823619 -3600 # Node ID e0e3ba7f192c9af2b1bb868bc3bf1da4955724d5 # Parent 8e43685cd49b0201cdc5bd27302be138174cab02 Use unsigned long integer literals. diff -r 8e43685cd49b -r e0e3ba7f192c pkg/devices/lib/dma/src/x1600.cc --- a/pkg/devices/lib/dma/src/x1600.cc Thu Feb 01 01:16:04 2024 +0100 +++ b/pkg/devices/lib/dma/src/x1600.cc Thu Feb 01 22:40:19 2024 +0100 @@ -1,7 +1,7 @@ /* * DMA support for the X1600. * - * Copyright (C) 2021, 2023 Paul Boddie + * Copyright (C) 2021, 2023, 2024 Paul Boddie * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as @@ -439,7 +439,7 @@ bool Dma_x1600_chip::have_interrupt(uint8_t channel) { - return _regs[Dma_irq_pending] & (1 << channel) ? true : false; + return _regs[Dma_irq_pending] & (1UL << channel) ? true : false; } // Acknowledge an interrupt condition on the given channel. @@ -447,7 +447,7 @@ void Dma_x1600_chip::ack_irq(uint8_t channel) { - _regs[Dma_irq_pending] = _regs[Dma_irq_pending] & ~(1 << channel); + _regs[Dma_irq_pending] = _regs[Dma_irq_pending] & ~(1UL << channel); } // Return whether an address error condition has arisen.