summaryrefslogtreecommitdiff
path: root/common/library.cpp
diff options
context:
space:
mode:
authorleo2000-07-23 20:31:33 +0000
committerleo2000-07-23 20:31:33 +0000
commit259b2b66808154b3d97ed3d4bbbdcc7d956d347e (patch)
tree807cca990ab24282e4609a347763ad21408c7f8d /common/library.cpp
parent4c41ae51220131d37b20639751dd1a16123aec7f (diff)
Workaround for a bug in gcc 2.95.2
git-svn-id: http://svn.leocad.org/trunk@97 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'common/library.cpp')
-rwxr-xr-xcommon/library.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/common/library.cpp b/common/library.cpp
index 0d5602c..f46291c 100755
--- a/common/library.cpp
+++ b/common/library.cpp
@@ -2,9 +2,6 @@
// Piece library management
//
-#ifdef LC_WINDOWS
-#include "stdafx.h"
-#endif
#include <malloc.h>
#include <string.h>
#include <math.h>
@@ -1204,8 +1201,8 @@ bool SaveLDrawPiece(LC_LDRAW_PIECE* piece)
for (i = 12; i < 20; i++)
{
- float tmp[1] = { tex->points[i] };
- short sh[1] = { (short)tmp[0] };
+ float tmp = tex->points[i];
+ short sh[1] = { (short)tmp };
newbin.WriteShort(sh, 1);
}
}