summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/luametatex/source/tex/texcommands.h4
-rw-r--r--source/luametatex/source/tex/texrules.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/source/luametatex/source/tex/texcommands.h b/source/luametatex/source/tex/texcommands.h
index 372066049..04f8fb606 100644
--- a/source/luametatex/source/tex/texcommands.h
+++ b/source/luametatex/source/tex/texcommands.h
@@ -247,8 +247,8 @@ typedef enum tex_command_code {
set_interaction_cmd, /*tex define level of interaction (|\batchmode|, etc.) */
/*tex
Here ends the section that is part of the big switch. What follows are commands that are
- intercepted when expanding tokens. The strint one came from a todo list and moved to a
- maybe list.
+ intercepted when expanding tokens. The |string_cmd| came from a todo list and moved to a
+ maybe list and finally became obsolete.
*/
undefined_cs_cmd, /*tex initial state of most |eq_type| fields */
expand_after_cmd, /*tex special expansion (|\expandafter|) */
diff --git a/source/luametatex/source/tex/texrules.c b/source/luametatex/source/tex/texrules.c
index 560ca73df..7d9adb7ef 100644
--- a/source/luametatex/source/tex/texrules.c
+++ b/source/luametatex/source/tex/texrules.c
@@ -236,7 +236,7 @@ void tex_aux_check_text_strut_rule(halfword rule, halfword style)
halfword tex_get_rule_font(halfword n, halfword style)
{
- if (node_subtype(n) == virtual_rule_subtype) {
+ if (node_subtype(n) != virtual_rule_subtype) {
halfword fnt = rule_strut_font(n);
if (fnt >= rule_font_fam_offset) {
halfword fam = fnt - rule_font_fam_offset;
@@ -256,7 +256,7 @@ halfword tex_get_rule_font(halfword n, halfword style)
halfword tex_get_rule_family(halfword n)
{
- if (node_subtype(n) == virtual_rule_subtype) {
+ if (node_subtype(n) != virtual_rule_subtype) {
halfword fnt = rule_strut_font(n);
if (fnt >= rule_font_fam_offset) {
halfword fam = fnt - rule_font_fam_offset;
@@ -270,7 +270,7 @@ halfword tex_get_rule_family(halfword n)
void tex_set_rule_font(halfword n, halfword fnt)
{
- if (node_subtype(n) == virtual_rule_subtype) {
+ if (node_subtype(n) != virtual_rule_subtype) {
if (fnt < 0 || fnt >= rule_font_fam_offset) {
rule_strut_font(n) = 0;
} else {
@@ -281,7 +281,7 @@ void tex_set_rule_font(halfword n, halfword fnt)
void tex_set_rule_family(halfword n, halfword fam)
{
- if (node_subtype(n) == virtual_rule_subtype) {
+ if (node_subtype(n) != virtual_rule_subtype) {
if (fam < 0 || fam >= max_n_of_math_families) {
rule_strut_font(n) = rule_font_fam_offset;
} else {