Project

Profile

Help

HostedRedmine.com has moved to the Planio platform. All logins and passwords remained the same. All users will be able to login and use Redmine just as before. Read more...

Bug #853412

astr_reserve() sign-compare compiler warning

Added by Marko Lindqvist almost 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Category:
General
Sprint/Milestone:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

With -Wsign-compare compiler warnings enabled:

../../../src/utility/astring.c: In function ‘astr_reserve’:
../../../src/utility/astring.c:177:22: error: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’ [-Werror=sign-compare]
177 | astr->n_alloc = (n > n1) ? n : n1; | ^
../../../src/utility/astring.c:177:34: error: operand of ?: changes signedness from ‘int’ to ‘size_t’ {aka ‘long unsigned int’} due to unsignedness of other operand [-Werror=sign-compare]
177 | astr->n_alloc = (n > n1) ? n : n1;

History

#1 Updated by Marko Lindqvist almost 2 years ago

#2 Updated by Marko Lindqvist almost 2 years ago

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

Also available in: Atom PDF