--- trunk/src/applications/staticProps/GofRAngle.cpp 2012/08/22 18:43:27 1785 +++ trunk/src/applications/staticProps/GofRAngle.cpp 2012/08/30 17:18:22 1790 @@ -107,13 +107,13 @@ namespace OpenMD { currentSnapshot_->wrapVector(r12); RealType distance = r12.length(); - int whichRBin = distance / deltaR_; + int whichRBin = int(distance / deltaR_); if (distance <= len_) { RealType cosAngle = evaluateAngle(sd1, sd2); RealType halfBin = (nAngleBins_ - 1) * 0.5; - int whichThetaBin = halfBin * (cosAngle + 1.0); + int whichThetaBin = int(halfBin * (cosAngle + 1.0)); ++histogram_[whichRBin][whichThetaBin]; ++npairs_;