Skip to content

Commit ae062d1

Browse files
committed
Fix sign warnings
1 parent 8216c56 commit ae062d1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Ic.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ void Ic::checkChannelSet()
103103
BOOST_THROW_EXCEPTION(IcException() << ErrorInfo::Message("No IC channel selected"));
104104
}
105105

106-
uint32_t channel = (barRead(sc_regs::SWT_MON.index) >> 8) & 0xff;
106+
int channel = (barRead(sc_regs::SWT_MON.index) >> 8) & 0xff;
107107

108108
if (channel != mLink.linkId) {
109109
setChannel(mLink.linkId);

src/Sca.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ void Sca::checkChannelSet()
8787
BOOST_THROW_EXCEPTION(ScaException() << ErrorInfo::Message("No SCA channel selected"));
8888
}
8989

90-
uint32_t channel = (barRead(sc_regs::SWT_MON.index) >> 8) & 0xff;
90+
int channel = (barRead(sc_regs::SWT_MON.index) >> 8) & 0xff;
9191

9292
if (channel != mLink.linkId) {
9393
setChannel(mLink.linkId);

src/Swt.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ void Swt::checkChannelSet()
9393
BOOST_THROW_EXCEPTION(SwtException() << ErrorInfo::Message("No SWT channel selected"));
9494
}
9595

96-
uint32_t channel = (barRead(sc_regs::SWT_MON.index) >> 8) & 0xff;
96+
int channel = (barRead(sc_regs::SWT_MON.index) >> 8) & 0xff;
9797

9898
if (channel != mLink.linkId) {
9999
setChannel(mLink.linkId);

0 commit comments

Comments
 (0)