fixed a compile bug in snapswig.h