Add check_whitespace_git.sh. Minor cleanups.

This commit is contained in:
Markus F.X.J. Oberhumer
2016-10-03 01:32:03 +02:00
parent 870cdfa51f
commit 06eb244800
6 changed files with 50 additions and 9 deletions
+2 -2
View File
@@ -547,7 +547,7 @@ void PackPs1::pack(OutputFile *fo)
const int lsize = getLoaderSize();
unsigned filelen = ALIGN_UP(ih.tx_len, 4);
unsigned filelen = ALIGN_UP(ih.tx_len, 4u);
const unsigned decomp_data_start = ih.tx_ptr;
const unsigned comp_data_start = (decomp_data_start + filelen + overlap) - ph.c_len;
@@ -594,7 +594,7 @@ void PackPs1::pack(OutputFile *fo)
if (!opt->ps1_exe.no_align || !isCon)
{
pad = oh.tx_len;
oh.tx_len = ALIGN_UP(oh.tx_len, CD_SEC);
oh.tx_len = ALIGN_UP(oh.tx_len, CD_SEC+0u);
pad = oh.tx_len - pad;
oh.tx_ptr -= pad;
}