diff options
author | srs5694 <srs5694@users.sourceforge.net> | 2010-01-29 17:44:04 -0500 |
---|---|---|
committer | srs5694 <srs5694@users.sourceforge.net> | 2010-01-29 17:44:04 -0500 |
commit | e321d444dcca514cf6b53459e388ddcbaab6176c (patch) | |
tree | 7c2c07142193cf2a66a958f59fb35d0ee0ca9ca0 /gptpart.cc | |
parent | 0a6973119c9e9984ad47a6da3231e8d16f996c5c (diff) | |
download | sgdisk-e321d444dcca514cf6b53459e388ddcbaab6176c.tar.gz |
Final 0.6.2 release; misc. bug fixes & Windows version
Diffstat (limited to 'gptpart.cc')
-rw-r--r-- | gptpart.cc | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -72,8 +72,6 @@ string GPTPart::GetName(void) { // name *IF* the current name is the generic one for the current partition // type. void GPTPart::SetType(struct GUIDData t) { - int nameSame = 1, currentLength, i; - if (GetName() == typeHelper.GUIDToName(partitionType)) { SetName(typeHelper.GUIDToName(t)); } // if @@ -157,7 +155,7 @@ void GPTPart::ShowSummary(int partNum, uint32_t blockSize) { cout.width(14); cout << lastLBA << " "; cout << BytesToSI(blockSize * (lastLBA - firstLBA + 1)) << " "; - for (i = 0; i < 9 - sizeInSI.length(); i++) cout << " "; + for (i = 0; i < 9 - (int) sizeInSI.length(); i++) cout << " "; cout.fill('0'); cout.width(4); cout.setf(ios::uppercase); |