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; return false;
if(d->length+sizeof(T) >= d->allocated) if(d->length+sizeof(T) >= d->allocated)
Allocate((d->length+sizeof(T)) * 2); Allocate((d->length+sizeof(T)) * 2);
(*(T *)(d->object + d->length)) = what; (*(T *)( (uint64_t)d->object + d->length)) = what;
d->length += sizeof(T); d->length += sizeof(T);
} }
Bytestreamdata * d; Bytestreamdata * d;

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