summaryrefslogtreecommitdiff
path: root/external/graphite/ubsan.patch
blob: fd7a08f82ed6ae684e13ab14145f7a57b99292a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- src/gr_face.cpp
+++ src/gr_face.cpp
@@ -95,7 +95,7 @@
 
     Face *res = new Face(appFaceHandle, *ops);
     if (res && load_face(*res, faceOptions))
-        return static_cast<gr_face *>(res);
+        return reinterpret_cast<gr_face *>(res);
 
     delete res;
     return 0;