Commit eda18707f3e4d4cce7846f7a52d9186fb5a92e80

marcelo 2003-01-14T16:08:38

The parser in the IRIX C++ compiler has a bug and the result of: new (Type*)[size] is of type "Type*" instead of "Type**". Work arround it by typedef'ing TypeP which is just Type*.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/FTVectoriser.cpp b/src/FTVectoriser.cpp
index 02c6a08..e376ba1 100644
--- a/src/FTVectoriser.cpp
+++ b/src/FTVectoriser.cpp
@@ -137,7 +137,8 @@ void FTVectoriser::ProcessContours()
     short startIndex = 0;
     short endIndex = 0;
     
-    contourList = new (FTContour*)[ftContourCount];
+    typedef FTContour* FTContourP;
+    contourList = new FTContourP[ftContourCount];
     
     for( short contourIndex = 0; contourIndex < ftContourCount; ++contourIndex)
     {