summaryrefslogtreecommitdiff
path: root/test/pthread.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/pthread.c')
-rw-r--r--test/pthread.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/pthread.c b/test/pthread.c
index 0e75dc3..8c1d87f 100644
--- a/test/pthread.c
+++ b/test/pthread.c
@@ -73,14 +73,14 @@ static void recv_alpha_sb(tn_session *s, tn_tuple *tup, tn_returnpath *p, void *
tn_tuple_unref(tup);
// Reply
- tn_reply(p, tn_tuple_new("i", 1));
- tn_reply(p, tn_tuple_new("i", 2));
+ tn_reply(p, tn_tuple_new("i", (uint64_t)1));
+ tn_reply(p, tn_tuple_new("i", (uint64_t)2));
tn_reply_close(p);
// Send some more alphas
int i;
for(i=1; i<10; i++)
- tn_session_send(sa, tn_tuple_new("si", strdup("alpha"), i), NULL, NULL);
+ tn_session_send(sa, tn_tuple_new("si", strdup("alpha"), (uint64_t)i), NULL, NULL);
tn_session_close(sb);
r_alpha_sb++;
@@ -139,7 +139,7 @@ int main() {
tn_session_register(sb, tn_tuple_new("s", strdup("alpha")), 1, recv_alpha_sb, (void *)2);
// Send start message (which wants a reply)
- tn_session_send(sa, tn_tuple_new("si", strdup("alpha"), 0), recv_reply, (void *)3);
+ tn_session_send(sa, tn_tuple_new("si", strdup("alpha"), (uint64_t)0), recv_reply, (void *)3);
pthread_join(th, NULL);
pthread_join(thb, NULL);