Skip to content

Commit

Permalink
COMP: Fix -Wsign-compare and -Wunused-variable in ctkDICOMItem class
Browse files Browse the repository at this point in the history
  • Loading branch information
jcfr committed Oct 21, 2021
1 parent 08461b3 commit 4a9e61e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Libs/DICOM/Core/ctkDICOMItem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -427,9 +427,8 @@ QString ctkDICOMItem::Decode( const DcmTag& tag, const OFString& raw ) const
std::cerr << "DICOM dataset contains some encoding that we never thought we would see (" << d->m_SpecificCharacterSet.toStdString() << "). Using ASCII encoding." << std::endl;
// Replace non-ASCII characters by "?" to avoid decoding errors and random special characters appearing in strings.
QString asciiString;
for (int i = 0; i < raw.length(); i++)
for (size_t i = 0; i < raw.length(); i++)
{
int ch = raw[i];
if (32 <= raw[i] && raw[i] < 128)
{
asciiString += raw[i];
Expand Down

0 comments on commit 4a9e61e

Please sign in to comment.