Permalink
Browse files

Fixes for MSVC build errors.

  • Loading branch information...
1 parent 6946d53 commit f2f79e0c09114d96d105bc3ed5cd414b2a26d53e @peterix peterix committed Feb 21, 2011
Showing with 2 additions and 1 deletion.
  1. +1 −1 tools/supported/SegmentedFinder.h
  2. +1 −0 tools/supported/autosearch.cpp
View
2 tools/supported/SegmentedFinder.h
@@ -393,7 +393,7 @@ class Bytestream
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;
View
1 tools/supported/autosearch.cpp
@@ -59,6 +59,7 @@ class Token
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;};

0 comments on commit f2f79e0

Please sign in to comment.