fix gwave.in to allow input data to exceed range of short.
fix gseries.in to allow input data to exceed range of short.