summaryrefslogtreecommitdiff
path: root/common/project.cpp
diff options
context:
space:
mode:
authorleo2009-10-08 00:08:32 +0000
committerleo2009-10-08 00:08:32 +0000
commit9a0e93203b563299728cc41e6c455792bfe4c5af (patch)
tree4e95a0446d0aca601e2d4d2eb0e5721f595d1c5e /common/project.cpp
parent27924be9739e67cb7808dfa98c4904816bed1cea (diff)
Fixes for 64-bit systems.
git-svn-id: http://svn.leocad.org/branches/leocad-0.75@836 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'common/project.cpp')
-rw-r--r--common/project.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/common/project.cpp b/common/project.cpp
index 802c1bc..da9e82d 100644
--- a/common/project.cpp
+++ b/common/project.cpp
@@ -640,7 +640,7 @@ bool Project::FileLoad(File* file, bool bUndo, bool bMerge)
for (pGroup = pLastGroup; pGroup; pGroup = pGroup->m_pNext)
{
- i = (int)pGroup->m_pGroup;
+ i = LC_POINTER_TO_INT(pGroup->m_pGroup);
pGroup->m_pGroup = NULL;
if (i > 0xFFFF || i == -1)
@@ -662,7 +662,7 @@ bool Project::FileLoad(File* file, bool bUndo, bool bMerge)
Piece* pPiece;
for (pPiece = m_pPieces; pPiece; pPiece = pPiece->m_pNext)
{
- i = (int)pPiece->GetGroup();
+ i = LC_POINTER_TO_INT(pPiece->GetGroup());
pPiece->SetGroup(NULL);
if (i > 0xFFFF || i == -1)
@@ -4767,7 +4767,7 @@ void Project::HandleCommand(LC_COMMANDS id, unsigned long nParam)
AddPiece(pPiece);
pPiece->Select(true, false, false);
- j = (int)pPiece->GetGroup();
+ j = LC_POINTER_TO_INT(pPiece->GetGroup());
if (j != -1)
pPiece->SetGroup(groups[j]);
else
@@ -4776,7 +4776,7 @@ void Project::HandleCommand(LC_COMMANDS id, unsigned long nParam)
for (j = 0; j < i; j++)
{
- int g = (int)groups[j]->m_pGroup;
+ int g = LC_POINTER_TO_INT(groups[j]->m_pGroup);
groups[j]->m_pGroup = (g != -1) ? groups[g] : NULL;
}