Fixes the build with gcc 3.2.2 (still has many warnings, though)

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7950 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini
2004-06-14 08:46:38 +00:00
parent c11def3bf2
commit 6ed18b369b
2 changed files with 2 additions and 2 deletions
@@ -336,7 +336,7 @@ KDiskDevice::ShadowOwner() const
void
KDiskDevice::WriteUserData(UserDataWriter &writer, bool shadow)
{
KPartition *partition = (shadow ? ShadowPartition() : this);
KPartition *partition = shadow ? ShadowPartition() : static_cast<KPartition *>(this);
if (!partition)
partition = this;
user_disk_device_data *data
@@ -68,7 +68,7 @@ UserDataWriter::Unset()
// AllocateData
void *
UserDataWriter::AllocateData(size_t size, size_t align = 1)
UserDataWriter::AllocateData(size_t size, size_t align)
{
// handles size == 0 gracefully
// get a properly aligned offset