From: Martin Vajnar Date: Sun, 7 Jul 2013 21:40:44 +0000 (+0200) Subject: JORTE: use brackets around '^' X-Git-Tag: v0.3.4~126 X-Git-Url: https://rtime.felk.cvut.cz/gitweb/orte.git/commitdiff_plain/deb4956d5b3b9dbaacf58e9af53f5670cb5b8e47 JORTE: use brackets around '^' This avoids compiler warnings. --- diff --git a/orte/libjorte/setRecvInfo.c b/orte/libjorte/setRecvInfo.c index 1a78343..5213939 100644 --- a/orte/libjorte/setRecvInfo.c +++ b/orte/libjorte/setRecvInfo.c @@ -166,7 +166,7 @@ int setRecvInfo(JNIEnv *env, const ORTERecvInfo *rinfo, jobject obj) } #ifdef TEST_STAGE printf(":c: rinfo.NtpTime: %d (sec = %d fract = %d) \n", - (rinfo->localTimeReceived.seconds + rinfo->localTimeReceived.fraction/2^32), + (rinfo->localTimeReceived.seconds + rinfo->localTimeReceived.fraction/(2^32)), rinfo->localTimeReceived.seconds,rinfo->localTimeReceived.fraction); #endif (*env)->SetObjectField(env, @@ -224,7 +224,7 @@ int setRecvInfo(JNIEnv *env, const ORTERecvInfo *rinfo, jobject obj) } #ifdef TEST_STAGE printf(":c: rinfo.remoteTimePub: %d (sec = %d fract = %d) \n", - (rinfo->remoteTimePublished.seconds + rinfo->remoteTimePublished.fraction/2^32), + (rinfo->remoteTimePublished.seconds + rinfo->remoteTimePublished.fraction/(2^32)), rinfo->remoteTimePublished.seconds,rinfo->remoteTimePublished.fraction); #endif (*env)->SetObjectField(env, @@ -280,7 +280,7 @@ int setRecvInfo(JNIEnv *env, const ORTERecvInfo *rinfo, jobject obj) } #ifdef TEST_STAGE printf(":c: rinfo.sn: %d (high = %d low = %d) \n", - (rinfo->sn.high*2^32 + rinfo->sn.low),rinfo->sn.high,rinfo->sn.low); + (rinfo->sn.high*(2^32) + rinfo->sn.low),rinfo->sn.high,rinfo->sn.low); #endif (*env)->SetObjectField(env, obj,