r7930: fixes for backproject and pjrec
[ctsim.git] / libctsim / backprojectors.cpp
index d38b7189f6b6c878b09ec0549dca5daf242ce24e..581b7ff0fccae2c4762723da08331f0f2d6d8b9a 100644 (file)
@@ -588,7 +588,7 @@ BackprojectIntDiff::BackprojectView (const double* const filteredProj, const dou
 #elif SIZEOF_LONG == 8
   static const int scaleShift = 32;
 #endif
-  static const long scale = (1 << scaleShift);
+  static const long scale = (1L << scaleShift);
   static const long scaleBitmask = scale - 1;
   static const long halfScale = scale / 2;
   static const double dInvScale = 1. / scale;