Fix 64-bit math error

32-bit * 32-bit = 32-bit, so disk images with partitions whose size
exceeded the capacity of a 32-bit int were coming out wrong.

Updated version to 4.0.3-a1.
This commit is contained in:
Andy McFadden 2017-10-30 10:17:54 -07:00
parent c2e3fb8353
commit 640959dad5
4 changed files with 7 additions and 7 deletions

View File

@ -4,8 +4,8 @@ faddenSoft
http://www.faddensoft.com/
CiderPress
http://a2ciderpress.com/
4.0.2
43000
4.0.3-a1
43038
C:\DATA\faddenSoft\fs.ico
Copyright © 2017 CiderPress project authors. All rights reserved.
C:\Src\CiderPress\DIST\ReadMe.txt
@ -357,7 +357,7 @@ FALSE
4095
Setup402.exe
Setup403-a1.exe
FALSE

View File

@ -14,8 +14,8 @@
/* CiderPress version numbers */
#define kAppMajorVersion 4
#define kAppMinorVersion 0
#define kAppBugVersion 2
#define kAppDevString L""
#define kAppBugVersion 3
#define kAppDevString L"-a1"
/*
* Windows application object.

View File

@ -472,7 +472,7 @@ DIError DiskImg::OpenImage(DiskImg* pParent, long firstBlock, long numBlocks)
* already have an open file with specific characteristics.
*/
//fOffset = pParent->fOffset + kBlockSize * firstBlock;
fLength = numBlocks * kBlockSize;
fLength = (di_off_t)numBlocks * kBlockSize;
fOuterLength = fWrappedLength = fLength;
fFileFormat = kFileFormatUnadorned;
fPhysical = pParent->fPhysical;

View File

@ -45,7 +45,7 @@ namespace DiskImgLib {
/* compiled-against versions; call DiskImg::GetVersion for linked-against */
#define kDiskImgVersionMajor 5
#define kDiskImgVersionMinor 0
#define kDiskImgVersionBug 0
#define kDiskImgVersionBug 1
/*