Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
qtermwidget/BlockArray.h: remove useless sizeof() to avoid cppcheck w…
…arning about suspicious division by sizeof() in a later memset() call
  • Loading branch information
rouault authored and nyalldawson committed Apr 10, 2023
1 parent 8c611df commit 20a831f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/grass/qtermwidget/BlockArray.h
Expand Up @@ -28,7 +28,7 @@
//#error Do not use in KDE 2.1

#define QTERMWIDGET_BLOCKSIZE (1 << 12)
#define ENTRIES ((QTERMWIDGET_BLOCKSIZE - sizeof(size_t) ) / sizeof(unsigned char))
#define ENTRIES (QTERMWIDGET_BLOCKSIZE - sizeof(size_t))

namespace Konsole {

Expand Down

0 comments on commit 20a831f

Please sign in to comment.