summaryrefslogtreecommitdiff
path: root/Build/source/texk/xdvipdfmx/src/pdfobj.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/xdvipdfmx/src/pdfobj.c')
-rw-r--r--Build/source/texk/xdvipdfmx/src/pdfobj.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/Build/source/texk/xdvipdfmx/src/pdfobj.c b/Build/source/texk/xdvipdfmx/src/pdfobj.c
index 23069ceb9c5..b78556e138c 100644
--- a/Build/source/texk/xdvipdfmx/src/pdfobj.c
+++ b/Build/source/texk/xdvipdfmx/src/pdfobj.c
@@ -538,12 +538,11 @@ void pdf_out_char (FILE *file, char c)
}
}
+static char xchar[] = "0123456789abcdef";
+
#define pdf_out_xchar(f,c) do {\
- int __tmpnum;\
- __tmpnum = ((c) >> 4) & 0x0f;\
- pdf_out_char((f), (((__tmpnum) >= 10) ? (__tmpnum)+'W' : (__tmpnum)+'0'));\
- __tmpnum = (c) & 0x0f;\
- pdf_out_char((f), (((__tmpnum) >= 10) ? (__tmpnum)+'W' : (__tmpnum)+'0'));\
+ pdf_out_char((f), xchar[((c) >> 4) & 0x0f]);\
+ pdf_out_char((f), xchar[(c) & 0x0f]);\
} while (0)
static