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:
parent
ab1b61405a
commit
76944b5625
|
@ -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, §or_data[written], 512 - written);
|
||||
written += cur_write;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue