ssize_t is nonstandard, and ive never heard of it before. besides stl uses size_t everywhere so we stick with it in memorystream.h.

This commit is contained in:
zeromus 2008-10-22 01:49:23 +00:00
parent ab1b61405a
commit 76944b5625
2 changed files with 3 additions and 3 deletions

View File

@ -771,7 +771,7 @@ cflash_write(unsigned int address,unsigned int data) {
LSEEK_FN( disk_image, currLBA, SEEK_SET);
while( written < 512) {
ssize_t cur_write =
size_t cur_write =
WRITE_FN( disk_image, &sector_data[written], 512 - written);
written += cur_write;

View File

@ -180,7 +180,7 @@ private:
setg(buf, buf+rp, buf + length);
}
void expand(ssize_t upto)
void expand(size_t upto)
{
if(!myBuf && !usevec)
throw new std::runtime_error("memory_streambuf is not expandable");
@ -189,7 +189,7 @@ private:
if(upto == -1)
newcapacity = capacity + capacity/2 + 2;
else
newcapacity = std::max((size_t)upto,capacity);
newcapacity = std::max(upto,capacity);
if(newcapacity == capacity) return;