From c908e99d39a3eb22a2933c10824f1e2abb446371 Mon Sep 17 00:00:00 2001 From: Luigi Scarso Date: Sun, 20 Oct 2019 11:20:11 +0000 Subject: correct casting for work_buffer. git-svn-id: svn://tug.org/texlive/trunk@52455 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/web2c/luatexdir/font/writecff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Build/source/texk/web2c/luatexdir/font/writecff.c b/Build/source/texk/web2c/luatexdir/font/writecff.c index 8082259757b..ea95cb9668d 100644 --- a/Build/source/texk/web2c/luatexdir/font/writecff.c +++ b/Build/source/texk/web2c/luatexdir/font/writecff.c @@ -1201,7 +1201,7 @@ static long pack_real(card8 * dest, long destlen, double value) } } res = sprintf(local_work_buffer, "%1.14g", value); - if ( (dest>work_buffer) && (dest-((card8*)work_buffer))<(res+1)) { + if ( (dest>((card8*)(work_buffer))) && (dest-((card8*)work_buffer))<(res+1)) { normal_warning("cff","invalid real value to pack. Continuing, but the font looks wrong."); } if (res<0) -- cgit v1.2.3