From d46a921487b2b8d972244a0f47a2550753584e04 Mon Sep 17 00:00:00 2001 From: Frank Gaede <frank.gaede@desy.de> Date: Fri, 22 Aug 2014 11:11:00 +0000 Subject: [PATCH] - try to fix Markus' compiler warning w/ left shift count >= width of type --- DDSegmentation/include/DDSegmentation/BitField64.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DDSegmentation/include/DDSegmentation/BitField64.h b/DDSegmentation/include/DDSegmentation/BitField64.h index e5c3992cf..006e13cf7 100644 --- a/DDSegmentation/include/DDSegmentation/BitField64.h +++ b/DDSegmentation/include/DDSegmentation/BitField64.h @@ -82,7 +82,7 @@ namespace DDSegmentation { */ void setValue(unsigned lowWord, unsigned highWord ) { - setValue( ( lowWord & 0xffffffffUL ) | ( ( highWord & 0xffffffffUL ) << 32 ) ) ; + setValue( ( lowWord & 0xffffffffULL ) | ( ( highWord & 0xffffffffULL ) << 32 ) ) ; } /** Operator for setting a new value and accessing the BitField directly */ -- GitLab