From 1404174584e954b34438930ed736b2653b9f9997 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Sun, 3 Jun 2012 19:20:29 +0000 Subject: [PATCH] Revert a change in xdelta3.c done in r2683. git-svn-id: https://svn.eduke32.com/eduke32@2732 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/xdelta3/xdelta3.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/polymer/eduke32/source/xdelta3/xdelta3.c b/polymer/eduke32/source/xdelta3/xdelta3.c index a96b5ccae..1e3099f0e 100644 --- a/polymer/eduke32/source/xdelta3/xdelta3.c +++ b/polymer/eduke32/source/xdelta3/xdelta3.c @@ -2654,13 +2654,10 @@ xd3_set_source (xd3_stream *stream, * calculations are cheap. */ if (!xd3_check_pow2 (src->blksize, &shiftby) == 0) { -#if XD3_DEBUG int check; + src->blksize = xd3_pow2_roundup(src->blksize); check = xd3_check_pow2 (src->blksize, &shiftby); XD3_ASSERT (check == 0); -#else - xd3_check_pow2 (src->blksize, &shiftby); -#endif IF_DEBUG1 (DP(RINT "raising srcblksz to %u\n", src->blksize)); }