avoid a few lgtm warnings
avoid a few lgtm warnings

"Multiplication result may overflow 'int' before it is converted to 'long'."

project-gemmi/gemmi,project-gemmi/gemmi,project-gemmi/gemmi,project-gemmi/gemmi