Project

General

Profile

Bug #855389

genlist_sort() sign-compare warning

Added by Marko Lindqvist 6 months ago. Updated 6 months ago.

Status:
Closed
Priority:
Normal
Category:
General
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

With -Wsign-compare enabled:

./../../src/utility/genlist.c: In function ‘genlist_sort’:
../../../src/utility/genlist.c:611:17: error: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘const long unsigned int’} [-Werror=sign-compare]
611 | for (i = 0; i < n; i++, myiter = myiter->next) { | ^
../../../src/utility/genlist.c:618:17: error: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘const long unsigned int’} [-Werror=sign-compare]
618 | for (i = 0; i < n; i++, myiter = myiter->next) {

History

#1 Updated by Marko Lindqvist 6 months ago

#2 Updated by Marko Lindqvist 6 months ago

  • Status changed from Resolved to Closed
  • Assignee set to Marko Lindqvist

Also available in: Atom PDF