win32 port: visibility, warnings, templates

This commit is contained in:
Matej Sekoranja
2013-11-27 01:11:12 +01:00
parent ccad38f2db
commit 301038664e
31 changed files with 141 additions and 86 deletions

View File

@@ -33,11 +33,11 @@ namespace epics {
if(s==(std::size_t)-1) // null // TODO remove
buffer->putByte(-1);
else if(s<254)
buffer->putByte(s);
buffer->putByte((int8)s);
else
{
buffer->putByte(-2);
buffer->putInt(s); // (byte)-2 + size
buffer->putInt((int8)s); // (byte)-2 + size
}
}