[ismrmrd] 102/281: fix a warning on 1<<mask_bit

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Jan 14 20:01:02 UTC 2015


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to annotated tag ismrmrd0.5
in repository ismrmrd.

commit 3aa9c83c1fac755962978f8e096b0a4f11d5b861
Author: Hui Xue <hui.xue at nih.gov>
Date:   Fri Mar 22 11:18:45 2013 -0400

    fix a warning on 1<<mask_bit
---
 ismrmrd.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ismrmrd.h b/ismrmrd.h
index 038583d..c79be80 100644
--- a/ismrmrd.h
+++ b/ismrmrd.h
@@ -800,7 +800,7 @@ public:
 		if (channel_id < 64*ISMRMRD_CHANNEL_MASKS) {
 			unsigned int mask_idx = channel_id>>6;
 			unsigned int mask_bit = channel_id-mask_idx*64;
-			return ((head_.channel_mask[mask_idx] & (1 << mask_bit)) > 0);
+			return ((head_.channel_mask[mask_idx] & ( (uint64_t)1 << mask_bit)) > 0);
 		}
 		return false;
 	}
@@ -809,7 +809,7 @@ public:
 		if (channel_id < 64*ISMRMRD_CHANNEL_MASKS) {
 			unsigned int mask_idx = channel_id>>6;
 			unsigned int mask_bit = channel_id-mask_idx*64;
-			head_.channel_mask[mask_idx] |= (1 << mask_bit);
+			head_.channel_mask[mask_idx] |= ( (uint64_t)1 << mask_bit);
 		}
 	}
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/ismrmrd.git



More information about the debian-science-commits mailing list