From 4b31223e60f8854d50c1d1bbddca528fbf37d261 Mon Sep 17 00:00:00 2001 From: Robert Baruch Date: Sun, 21 Feb 2021 20:00:31 -0800 Subject: [PATCH] int -> bool --- kernel/rtlil.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/rtlil.h b/kernel/rtlil.h index a5f170085..6170ea55e 100644 --- a/kernel/rtlil.h +++ b/kernel/rtlil.h @@ -735,7 +735,7 @@ struct RTLIL::SigChunk RTLIL::SigChunk extract(int offset, int length) const; inline int size() const { return width; } - inline int is_wire() const { return wire != NULL; } + inline bool is_wire() const { return wire != NULL; } bool operator <(const RTLIL::SigChunk &other) const; bool operator ==(const RTLIL::SigChunk &other) const; @@ -761,7 +761,7 @@ struct RTLIL::SigBit SigBit(const RTLIL::SigBit &sigbit) = default; RTLIL::SigBit &operator =(const RTLIL::SigBit &other) = default; - inline int is_wire() const { return wire != NULL; } + inline bool is_wire() const { return wire != NULL; } bool operator <(const RTLIL::SigBit &other) const; bool operator ==(const RTLIL::SigBit &other) const; -- 2.30.2