/*
* This file is part of the GROMACS molecular simulation package.
*
- * Copyright (c) 2010,2012,2014, by the GROMACS development team, led by
+ * Copyright (c) 2010,2012,2014,2015, by the GROMACS development team, led by
* Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
* and including many others, as listed in the AUTHORS file in the
* top-level source directory and at http://www.gromacs.org.
int t, v;
size_t s, st;
+ if (size == 0)
+ {
+ return;
+ }
+
cbase = (char *)base;
swaptype = (size_t)(cbase - (char *)0) % sizeof(int) || size % sizeof(int) ? 2 : size == sizeof(int) ? 0 : 1;
}
else
{
- pv = (char*)(void*)&v;
v = *(int *)pm;
+ pv = (char*)(void*)&v;
}
pa = pb = cbase;