fix gsize=0 / -1 case (if(<24) goto fail) before it is not a good idea