freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2] master 1f72a120a: * src/truetype/ttgxvar.c (ft_var_readpacke


From: Werner Lemberg
Subject: [freetype2] master 1f72a120a: * src/truetype/ttgxvar.c (ft_var_readpacked*): Minor.
Date: Mon, 5 Aug 2024 09:11:08 -0400 (EDT)

branch: master
commit 1f72a120a9515b13741199fb3783c344e51bda8f
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Commit: Alexei Podtelezhnikov <apodtele@gmail.com>

    * src/truetype/ttgxvar.c (ft_var_readpacked*): Minor.
---
 src/truetype/ttgxvar.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/truetype/ttgxvar.c b/src/truetype/ttgxvar.c
index 22de98f9e..396c38381 100644
--- a/src/truetype/ttgxvar.c
+++ b/src/truetype/ttgxvar.c
@@ -182,7 +182,7 @@
 
       /* first point not included in run count */
       cnt++;
-      if ( i + cnt > n )
+      if ( cnt > n - i )
         cnt = n - i;
 
       if ( runcnt & GX_PT_POINTS_ARE_WORDS )
@@ -281,7 +281,7 @@
 
       /* first point not included in run count */
       cnt++;
-      if ( i + cnt > delta_cnt )
+      if ( cnt > delta_cnt - i )
         cnt = delta_cnt - i;
 
       if ( runcnt & GX_DT_DELTAS_ARE_ZERO )



reply via email to

[Prev in Thread] Current Thread [Next in Thread]