Skip to content

Commit

Permalink
[#13] Minor source code improvements (Part 209: Resolved some compile…
Browse files Browse the repository at this point in the history
…r warnings)
  • Loading branch information
tomas-nestorovic committed Apr 30, 2023
1 parent e99f166 commit b528bb3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Main/src/CapsBase_Precomp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -431,8 +431,8 @@ nextTrial: ;
return ERROR_UNKNOWN_COMPONENT;
}
// - assuring that all fluxes are after pre-compensation still chronologically ordered
pt=trw.GetBuffer();
for( DWORD tPrev=*pt,i=1,j=1; i<nTimes; j++ ) // i = "target" position, j = "source" position
TLogTime tPrev=*( pt=trw.GetBuffer() );
for( DWORD i=1,j=1; i<nTimes; j++ ) // i = "target" position, j = "source" position
if (pt[j]<tPrev){
// no - the J-th flux should already been processed, meaning the Previous flux was a "tachyon" one!
ASSERT(FALSE);
Expand Down
2 changes: 1 addition & 1 deletion Main/src/ImageFloppy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ using namespace Yahel;
return rNext.logicalPosition;
}
} trackHexaInfos[FDD_CYLINDERS_MAX*2+1];
BYTE lastKnownHexaRowLength;
WORD lastKnownHexaRowLength;

TSector __scanTrack__(TTrack track,PSectorId ids,PWORD lengths) const{
// a wrapper around CImage::ScanTrack
Expand Down
2 changes: 1 addition & 1 deletion Main/src/SCP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ formatError: ::SetLastError(ERROR_BAD_FORMAT);
pit->FlushSectorBuffers(); // convert all modifications into flux transitions
if (const DWORD trackLength=TrackToStream( *pit, CMemFile(buffer,SCP_BUFFER_CAPACITY), cylFile, head, bStreamAdjusted )){
// conversion of the Track to SuperCardPro stream succeeded?
const LONG capacity=((TTrackDataHeader *)buffer.get())->GetFullTrackCapacityInBytes( mp, header );
const DWORD capacity=((TTrackDataHeader *)buffer.get())->GetFullTrackCapacityInBytes( mp, header );
if (GetCurrentDiskFreeSpace()<capacity)
return ERROR_DISK_FULL;
// . success thanks to adjustments to overcome SuperCard Pro limitations?
Expand Down

0 comments on commit b528bb3

Please sign in to comment.