shithub: riscv

Download patch

ref: 9cc9d6113cc2b25e1651771c967990939ce09581
parent: 3f1e6903d64046426d527f646d6ff92dcc71d6ba
author: cinap_lenrek <[email protected]>
date: Sun May 4 19:31:59 EDT 2014

gs: fix truetype interpreter for amd64

--- a/sys/src/cmd/gs/src/ttfsfnt.h
+++ b/sys/src/cmd/gs/src/ttfsfnt.h
@@ -47,6 +47,8 @@
 typedef   int32_t  F26Dot6; /* 26.6 32-bit signed fixed-point number */
 #endif
 
+#pragma pack on
+
 typedef struct {
 	uint32 bc;
 	uint32 ad;
@@ -348,5 +350,7 @@
 } FontTableInfo;
 
 #define RAW_TRUE_TYPE_SIZE 512
+
+#pragma pack off
 
 #endif
--- a/sys/src/cmd/gs/src/tttypes.h
+++ b/sys/src/cmd/gs/src/tttypes.h
@@ -118,11 +118,7 @@
 #endif
 
 #ifdef Plan9
-#ifdef Tamd64
-  typedef unsigned long long* PStorage;
-#else
   typedef unsigned int* PStorage;
-#endif
 #elif   ARCH_SIZEOF_PTR == SIZEOF_LONG
   typedef long*  PStorage;
 #elif ARCH_SIZEOF_PTR == SIZEOF_INT