From: <dh...@us...> - 2014-01-24 20:25:44
|
Revision: 290 http://sourceforge.net/p/xlslib/code/290 Author: dhoerl Date: 2014-01-24 20:25:42 +0000 (Fri, 24 Jan 2014) Log Message: ----------- Casts to avoid 64bit compile warnings Modified Paths: -------------- trunk/xlslib/src/oledoc/oledoc.cpp Modified: trunk/xlslib/src/oledoc/oledoc.cpp =================================================================== --- trunk/xlslib/src/oledoc/oledoc.cpp 2014-01-24 20:24:53 UTC (rev 289) +++ trunk/xlslib/src/oledoc/oledoc.cpp 2014-01-24 20:25:42 UTC (rev 290) @@ -150,7 +150,7 @@ #if OLE_DEBUG std::cerr << "sectorID=" << sectorID << std::endl; #endif - WriteUnsigned32(sectorID++); + WriteUnsigned32((unsigned)sectorID++); } #if OLE_DEBUG std::cerr << std::hex << Position() << std::dec << std::endl; @@ -169,12 +169,12 @@ // plow ahead, adding up to 127 entries per extra MSAT block msatID = 1; // sector 0 is the first MSAT, if used for(i=1; i<=bks.extra_bat_count; i++) { - WriteUnsigned32(sectorID++); + WriteUnsigned32((unsigned)sectorID++); if((i % BAT_BLOCKS_PER_MSAT_BLOCK) == 0) { if(i == bks.extra_bat_count) { WriteSigned32(BAT_END_CHAIN); // pointer to next MSAT } else { - WriteUnsigned32(msatID++); // pointer to next MSAT + WriteUnsigned32((unsigned)msatID++); // pointer to next MSAT } } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |