From 259b2b66808154b3d97ed3d4bbbdcc7d956d347e Mon Sep 17 00:00:00 2001 From: leo Date: Sun, 23 Jul 2000 20:31:33 +0000 Subject: Workaround for a bug in gcc 2.95.2 git-svn-id: http://svn.leocad.org/trunk@97 c7d43263-9d01-0410-8a33-9dba5d9f93d6 --- common/library.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'common/library.cpp') 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 #include #include @@ -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); } } -- cgit v1.2.3