Fix warnings from new version of clang tidy.
Change-Id: I2c85c8addd2bec83fa3796bb3ca8e87f5523a6fc
diff --git a/src/api.c b/src/api.c
index c16a808..e7c2d01 100644
--- a/src/api.c
+++ b/src/api.c
@@ -296,7 +296,7 @@
struct vcpu **next)
{
uint32_t intid_index = intid / INTERRUPT_REGISTER_BITS;
- uint32_t intid_mask = 1u << (intid % INTERRUPT_REGISTER_BITS);
+ uint32_t intid_mask = 1U << (intid % INTERRUPT_REGISTER_BITS);
int64_t ret = 0;
sl_lock(&target_vcpu->lock);
@@ -1253,7 +1253,7 @@
int64_t api_interrupt_enable(uint32_t intid, bool enable, struct vcpu *current)
{
uint32_t intid_index = intid / INTERRUPT_REGISTER_BITS;
- uint32_t intid_mask = 1u << (intid % INTERRUPT_REGISTER_BITS);
+ uint32_t intid_mask = 1U << (intid % INTERRUPT_REGISTER_BITS);
if (intid >= HF_NUM_INTIDS) {
return -1;
@@ -1315,7 +1315,7 @@
* Mark it as no longer pending and decrement the count.
*/
current->interrupts.interrupt_pending[i] &=
- ~(1u << bit_index);
+ ~(1U << bit_index);
current->interrupts.enabled_and_pending_count--;
first_interrupt =
i * INTERRUPT_REGISTER_BITS + bit_index;