Skip to content

Commit 20a831f

Browse files
rouaultnyalldawson
authored andcommittedApr 10, 2023
qtermwidget/BlockArray.h: remove useless sizeof() to avoid cppcheck warning about suspicious division by sizeof() in a later memset() call
1 parent 8c611df commit 20a831f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/plugins/grass/qtermwidget/BlockArray.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
//#error Do not use in KDE 2.1
2929

3030
#define QTERMWIDGET_BLOCKSIZE (1 << 12)
31-
#define ENTRIES ((QTERMWIDGET_BLOCKSIZE - sizeof(size_t) ) / sizeof(unsigned char))
31+
#define ENTRIES (QTERMWIDGET_BLOCKSIZE - sizeof(size_t))
3232

3333
namespace Konsole {
3434

0 commit comments

Comments
 (0)
Please sign in to comment.