diff --git a/libbps.cpp b/libbps.cpp index 83aeaab..75f8c3f 100644 --- a/libbps.cpp +++ b/libbps.cpp @@ -284,7 +284,7 @@ enum bpserror bps_create_linear(struct mem sourcemem, struct mem targetmem, stru { size_t numunchanged=0; while (source+numunchanged1) + if (numunchanged>1 || numunchanged == targetend-target) { //assert_shift((numunchanged-1), 2); writenum((numunchanged-1)<<2 | 0);//SourceRead diff --git a/make.sh b/make.sh index 241a667..d840560 100755 --- a/make.sh +++ b/make.sh @@ -38,16 +38,16 @@ profile/profile.sh ./flips echo 'GTK+ (3/3)' rm flips; CFLAGS=$FLAGS' -fprofile-use' make TARGET=gtk LFLAGS='' rm *.gcda -exit #mv flips ~/bin/flips # keeping this one for myself +mv flips ~/bin/flips # keeping this one for myself -echo Finishing -#compress source -7z a floating.zip flips.exe -zipcrush floating.zip -echo Size: $(stat -c%s flips.exe)/96768 -echo \(Linux: $(stat -c%s ~/bin/flips)\) -echo \(Zipped: $(stat -c%s floating.zip)/59881\) - -./special.sh - -rm src.zip boring.zip +#echo Finishing +##compress source +#7z a floating.zip flips.exe +#zipcrush floating.zip +#echo Size: $(stat -c%s flips.exe)/96768 +#echo \(Linux: $(stat -c%s ~/bin/flips)\) +#echo \(Zipped: $(stat -c%s floating.zip)/59881\) +# +#./special.sh +# +#rm src.zip boring.zip