summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/omegafonts/font_routines.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/web2c/omegafonts/font_routines.c')
-rw-r--r--Build/source/texk/web2c/omegafonts/font_routines.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/Build/source/texk/web2c/omegafonts/font_routines.c b/Build/source/texk/web2c/omegafonts/font_routines.c
index 50ed5690f50..c8557bd0a67 100644
--- a/Build/source/texk/web2c/omegafonts/font_routines.c
+++ b/Build/source/texk/web2c/omegafonts/font_routines.c
@@ -436,9 +436,11 @@ move_ptr_incr(void)
unsigned
get_hex(unsigned char c)
{
- if ((c>='0') || (c<='9')) return(c-'0');
- if ((c>='A') || (c<='F')) return(c-'A'+10);
- internal_error_1("get_hex (a=%c)", c);
+ if ((c>='0') && (c<='9')) return(c-'0');
+ if ((c<'A') || (c>'F')) {
+ internal_error_1("get_hex (a=%c)", c);
+ }
+ return(c-'A'+10);
}
void