mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-27 06:26:15 +01:00
Fix several signedness problems in glib/tests/checksum.c
glib/tests/checksum.c:1079:27: error: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} 1079 | for (length = 0; length <= FIXED_LEN; length++) | ^~ glib/tests/checksum.c:1103:27: error: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} 1103 | for (length = 0; length <= FIXED_LEN; length++) | ^~ glib/tests/checksum.c:1187:27: error: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} 1187 | for (length = 0; length <= FIXED_LEN; length++) | ^~ glib/tests/checksum.c:1192:27: error: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} 1192 | for (length = 0; length <= FIXED_LEN; length++) | ^~ glib/tests/checksum.c:1197:27: error: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} 1197 | for (length = 0; length <= FIXED_LEN; length++) | ^~ glib/tests/checksum.c:1202:27: error: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} 1202 | for (length = 0; length <= FIXED_LEN; length++) | ^~ glib/tests/checksum.c:1207:27: error: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} 1207 | for (length = 0; length <= FIXED_LEN; length++) | ^~
This commit is contained in:
parent
5a361aeeaa
commit
fd7f2e6c8a
@ -1014,9 +1014,8 @@ hexval (const gchar c)
|
|||||||
static guint8 *
|
static guint8 *
|
||||||
sum_to_digest (const gchar *sum, gsize *len)
|
sum_to_digest (const gchar *sum, gsize *len)
|
||||||
{
|
{
|
||||||
gsize l;
|
gsize i, l;
|
||||||
guint8 *digest;
|
guint8 *digest;
|
||||||
gint i;
|
|
||||||
|
|
||||||
g_assert (strlen (sum) % 2 == 0);
|
g_assert (strlen (sum) % 2 == 0);
|
||||||
l = strlen (sum) / 2;
|
l = strlen (sum) / 2;
|
||||||
@ -1074,7 +1073,7 @@ static void
|
|||||||
test_checksum_string (gconstpointer d)
|
test_checksum_string (gconstpointer d)
|
||||||
{
|
{
|
||||||
const ChecksumComputeTest *test = d;
|
const ChecksumComputeTest *test = d;
|
||||||
int length;
|
gsize length;
|
||||||
gchar *checksum;
|
gchar *checksum;
|
||||||
|
|
||||||
for (length = 0; length <= FIXED_LEN; length++)
|
for (length = 0; length <= FIXED_LEN; length++)
|
||||||
@ -1098,7 +1097,7 @@ test_checksum_bytes (gconstpointer d)
|
|||||||
{
|
{
|
||||||
const ChecksumComputeTest *test = d;
|
const ChecksumComputeTest *test = d;
|
||||||
GBytes *input;
|
GBytes *input;
|
||||||
int length;
|
gsize length;
|
||||||
gchar *checksum;
|
gchar *checksum;
|
||||||
|
|
||||||
for (length = 0; length <= FIXED_LEN; length++)
|
for (length = 0; length <= FIXED_LEN; length++)
|
||||||
@ -1179,7 +1178,7 @@ test_unsupported (void)
|
|||||||
int
|
int
|
||||||
main (int argc, char *argv[])
|
main (int argc, char *argv[])
|
||||||
{
|
{
|
||||||
int length;
|
gsize length;
|
||||||
|
|
||||||
g_test_init (&argc, &argv, NULL);
|
g_test_init (&argc, &argv, NULL);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user