diff options
author | Rod Smith <rodsmith@rodsbooks.com> | 2017-07-26 21:15:59 -0400 |
---|---|---|
committer | Rod Smith <rodsmith@rodsbooks.com> | 2017-07-26 21:15:59 -0400 |
commit | eed1122809cb7c509e808c1e76853af23f8652c8 (patch) | |
tree | a0eeaa4c90a1fe99fb311b9d607cced2fa86b382 /basicmbr.cc | |
parent | 7dfc89673419e9c45ec63b517f2b060189592f5f (diff) | |
download | sgdisk-eed1122809cb7c509e808c1e76853af23f8652c8.tar.gz |
Version 1.0.2 release.
Diffstat (limited to 'basicmbr.cc')
-rw-r--r-- | basicmbr.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/basicmbr.cc b/basicmbr.cc index 5661487..8fbffd1 100644 --- a/basicmbr.cc +++ b/basicmbr.cc @@ -1497,11 +1497,11 @@ uint64_t BasicMBRData::GetFirstSector(int i) { uint64_t retval; thePart = GetPartition(i); - if (thePart != NULL) { + if (thePart != NULL) retval = thePart->GetStartLBA(); - } else + else retval = UINT32_C(0); - return retval; + return retval; } // BasicMBRData::GetFirstSector() uint64_t BasicMBRData::GetLength(int i) { @@ -1509,11 +1509,11 @@ uint64_t BasicMBRData::GetLength(int i) { uint64_t retval; thePart = GetPartition(i); - if (thePart != NULL) { + if (thePart != NULL) retval = thePart->GetLengthLBA(); - } else + else retval = UINT64_C(0); - return retval; + return retval; } // BasicMBRData::GetLength() /*********************** |