From 0c52faa9db22d32e22f6fe2a57da9d32c7e82d35 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Sun, 25 May 2008 20:04:56 +0000 Subject: [PATCH] add missing casting --- src/truetype/ttgload.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/truetype/ttgload.c b/src/truetype/ttgload.c index a7e65fbe0..f6d6f9fcd 100644 --- a/src/truetype/ttgload.c +++ b/src/truetype/ttgload.c @@ -658,8 +658,10 @@ } else { - loader->exec->metrics.x_scale = loader->size->metrics.x_scale; - loader->exec->metrics.y_scale = loader->size->metrics.y_scale; + loader->exec->metrics.x_scale = + ((TT_Size)loader->size)->metrics.x_scale; + loader->exec->metrics.y_scale = + ((TT_Size)loader->size)->metrics.y_scale; } #endif