summaryrefslogtreecommitdiff
path: root/tests/pthread.l
diff options
context:
space:
mode:
authorrlar <rlar>2016-03-16 19:46:14 +0100
committerWill Estes <westes575@gmail.com>2016-03-18 14:49:23 -0400
commited59d3e0664b938f7f4854692349b9d59839fad6 (patch)
tree58009bb252a6ff222aa7609f3bdda374d724116c /tests/pthread.l
parentc2429b5a4a6a0e7030c36f75e16ec68923f32cc6 (diff)
warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion]
Diffstat (limited to 'tests/pthread.l')
-rw-r--r--tests/pthread.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/pthread.l b/tests/pthread.l
index b2ca8c1..7d0dc7f 100644
--- a/tests/pthread.l
+++ b/tests/pthread.l
@@ -165,7 +165,7 @@ int main (int ARGC, char *ARGV[])
}
/* Allocate and initialize the locks. One for each filename in ARGV. */
- file_locks = malloc((ARGC-1) * sizeof(pthread_mutex_t));
+ file_locks = malloc((size_t) (ARGC-1) * sizeof(pthread_mutex_t));
for( i = 0; i < ARGC-1; i++)
pthread_mutex_init( &file_locks[i], NULL );