Bazaar/Serial : fix for OSX

git-svn-id: svn://ultimatepp.org/upp/trunk@10814 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
micio 2017-02-01 15:56:34 +00:00
parent a029d15ad5
commit 1702b18a71

View file

@ -415,7 +415,7 @@ namespace Upp
uint32_t tim = msecs() + timeout;
if (reqSize)
{
n = min(reqSize, (size_t)1000);
n = min(reqSize, (uint32_t)1000);
while (reqSize)
{
n = read(fd, buf, n);
@ -423,7 +423,7 @@ namespace Upp
{
if ((uint32_t)msecs() > tim)
break;
n = min(reqSize, (size_t)1000);
n = min(reqSize, (uint32_t)1000);
continue;
}
tim = msecs() + timeout;
@ -432,7 +432,7 @@ namespace Upp
reqSize -= n;
data.Cat(buf, n);
}
n = min(reqSize, (size_t)1000);
n = min(reqSize, (uint32_t)1000);
}
}
else