emacs-diffs
[Top][All Lists]
Advanced

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

master d0e3dfa764c 2/2: Properly sign-extend freedom and projection vect


From: Po Lu
Subject: master d0e3dfa764c 2/2: Properly sign-extend freedom and projection vector values
Date: Tue, 19 Dec 2023 01:51:06 -0500 (EST)

branch: master
commit d0e3dfa764cdb5c15c2a525b455df495097a86bb
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    Properly sign-extend freedom and projection vector values
    
    * src/sfnt.c (GPV, GFV): Cast versors to int32_t.
---
 src/sfnt.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/sfnt.c b/src/sfnt.c
index 1b4cdf38bd0..c33f21215a6 100644
--- a/src/sfnt.c
+++ b/src/sfnt.c
@@ -8080,8 +8080,8 @@ sfnt_interpret_trap (struct sfnt_interpreter *interpreter,
     vector                                     \
       = interpreter->state.projection_vector;  \
                                                \
-    PUSH ((uint16_t) vector.x);                        \
-    PUSH ((uint16_t) vector.y);                        \
+    PUSH ((int32_t) vector.x);                 \
+    PUSH ((int32_t) vector.y);                 \
   }
 
 #define GFV()                                  \
@@ -8091,8 +8091,8 @@ sfnt_interpret_trap (struct sfnt_interpreter *interpreter,
     vector                                     \
       = interpreter->state.freedom_vector;     \
                                                \
-    PUSH ((uint16_t) vector.x);                        \
-    PUSH ((uint16_t) vector.y);                        \
+    PUSH ((int32_t) vector.x);                 \
+    PUSH ((int32_t) vector.y);                 \
   }
 
 #define SFVTPV()                               \



reply via email to

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