Fix compilation issue: pass variable of expected type to resize
commite1c98a13f5584c430c9d93deea47d84858ca7ee4
authorAlan Gray <alangray3@gmail.com>
Tue, 4 Aug 2020 12:30:35 +0000 (4 12:30 +0000)
committerMark Abraham <mark.j.abraham@gmail.com>
Tue, 4 Aug 2020 12:30:35 +0000 (4 12:30 +0000)
tree7e9dd2801cca912fbb0ee55f860b2df6f68eecb8
parent4bb03dd635847500118e4c7549734858ade7d745
Fix compilation issue: pass variable of expected type to resize

Compilation was failing under certian situations since a7e51062b4
because of the line
flags->resize(sizeNeededForBufferFlags(numAtoms),0);
since the second arg is expected to be of type gmx_bitmask_t to
match the type in the flags vector. This patch fixes by explicitly
passing a zeroed variable of the correct type.
src/gromacs/nbnxm/pairlist.cpp