summaryrefslogtreecommitdiff
path: root/source/luametatex/source/tex/texprimitive.c
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2022-10-21 21:37:10 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2022-10-21 21:37:10 +0200
commit5d31142615a7efaf833be860e412995b42bf9c3c (patch)
treef2c6470f09089ef3005659783b834989ee7e1989 /source/luametatex/source/tex/texprimitive.c
parentc0c1dea1daf21f2c21f6d8094f54f67138998baf (diff)
downloadcontext-5d31142615a7efaf833be860e412995b42bf9c3c.tar.gz
2022-10-21 21:13:00
Diffstat (limited to 'source/luametatex/source/tex/texprimitive.c')
-rw-r--r--source/luametatex/source/tex/texprimitive.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/source/luametatex/source/tex/texprimitive.c b/source/luametatex/source/tex/texprimitive.c
index bbeea1bc0..42344af15 100644
--- a/source/luametatex/source/tex/texprimitive.c
+++ b/source/luametatex/source/tex/texprimitive.c
@@ -185,7 +185,7 @@ static int tex_aux_room_in_hash(void)
inline static halfword tex_aux_compute_hash(const char *j, int l)
{
halfword h = (unsigned const char) j[0];
- for (int k = 1; k < l; k++) {
+ for (unsigned k = 1; k < l; k++) {
h = (h + h + (unsigned const char) j[k]) % hash_prime;
}
return h;
@@ -765,18 +765,6 @@ void tex_print_cmd_chr(singleword cmd, halfword chr)
tex_print_str_esc("char");
tex_print_qhex(chr);
break;
- // case math_char_given_cmd:
- // /*tex
- // Okay, it's better for old macro packages that mess with meaning to report a more
- // traditional value. A compromise. But, this might be dropped.
- // */
- // tex_print_str_esc("mathchar");
- // tex_show_mathcode_value(tex_mathchar_from_integer(chr, tex_mathcode), tex_mathcode);
- // break;
- // case math_char_xgiven_cmd:
- // tex_print_str_esc("Umathchar");
- // tex_show_mathcode_value(tex_mathchar_from_integer(chr, umath_mathcode), umath_mathcode);
- // break;
case lua_call_cmd:
tex_aux_show_lua_call("luacall", chr);
break;