mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
Bazaar/Serial : fix for OSX
git-svn-id: svn://ultimatepp.org/upp/trunk@10814 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
a029d15ad5
commit
1702b18a71
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue