emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master 36a8024: Fix negation in elements of OTF feature li


From: YAMAMOTO Mitsuharu
Subject: [Emacs-diffs] master 36a8024: Fix negation in elements of OTF feature list
Date: Sun, 30 Jun 2019 03:10:33 -0400 (EDT)

branch: master
commit 36a8024e2b2e5e8714f8e636657c898a4bffaafb
Author: YAMAMOTO Mitsuharu <address@hidden>
Commit: YAMAMOTO Mitsuharu <address@hidden>

    Fix negation in elements of OTF feature list
    
    * src/ftfont.c (ftfont_get_open_type_spec):
    * src/macfont.m (macfont_get_open_type_spec): Take bitwise or instead of 
and.
---
 src/ftfont.c  | 2 +-
 src/macfont.m | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/ftfont.c b/src/ftfont.c
index 4380a48..384279f 100644
--- a/src/ftfont.c
+++ b/src/ftfont.c
@@ -613,7 +613,7 @@ ftfont_get_open_type_spec (Lisp_Object otf_spec)
              unsigned int tag;
 
              OTF_SYM_TAG (XCAR (val), tag);
-             spec->features[i][j++] = negative ? tag & 0x80000000 : tag;
+             spec->features[i][j++] = negative ? tag | 0x80000000 : tag;
            }
        }
       spec->nfeatures[i] = j;
diff --git a/src/macfont.m b/src/macfont.m
index abdf0ec..f736fbf 100644
--- a/src/macfont.m
+++ b/src/macfont.m
@@ -1824,7 +1824,7 @@ macfont_get_open_type_spec (Lisp_Object otf_spec)
               unsigned int tag;
 
               OTF_SYM_TAG (XCAR (val), tag);
-              spec->features[i][j++] = negative ? tag & 0x80000000 : tag;
+              spec->features[i][j++] = negative ? tag | 0x80000000 : tag;
             }
         }
       spec->nfeatures[i] = j;



reply via email to

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