Fixes for MSVC build errors.

develop
Petr Mrázek 2011-02-21 10:25:21 +01:00
parent 6946d53e56
commit f2f79e0c09
2 changed files with 2 additions and 1 deletions

@ -393,7 +393,7 @@ public:
return false;
if(d->length+sizeof(T) >= d->allocated)
Allocate((d->length+sizeof(T)) * 2);
(*(T *)(d->object + d->length)) = what;
(*(T *)( (uint64_t)d->object + d->length)) = what;
d->length += sizeof(T);
}
Bytestreamdata * d;

@ -59,6 +59,7 @@ public:
virtual bool AcquireOffset(DFHack::VersionInfo * vinfo)
{
vinfo->getOffset(full_offset_name);
return true;
}
virtual uint32_t Length() = 0;
virtual uint64_t getAbsolute(){if(parent) return parent->getAbsolute() + offset; else return offset;};