From 3465ae1c58a87382c33117f6c5dec52403c9694e Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Tue, 20 Jun 2006 10:43:53 -0700 Subject: output-stream: Support %X in addition to %x --- src/cairo-output-stream.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/cairo-output-stream.c') diff --git a/src/cairo-output-stream.c b/src/cairo-output-stream.c index 784d159a9..96ff8ce0c 100644 --- a/src/cairo-output-stream.c +++ b/src/cairo-output-stream.c @@ -314,7 +314,7 @@ _cairo_output_stream_vprintf (cairo_output_stream_t *stream, _cairo_output_stream_write (stream, buffer, p - buffer); p = buffer; - /* We group signed and usigned together in this swith, the + /* We group signed and unsigned together in this switch, the * only thing that matters here is the size of the arguments, * since we're just passing the data through to sprintf(). */ switch (*f | length_modifier) { @@ -326,12 +326,14 @@ _cairo_output_stream_vprintf (cairo_output_stream_t *stream, case 'u': case 'o': case 'x': + case 'X': snprintf (buffer, sizeof buffer, single_fmt, va_arg (ap, int)); break; case 'd' | LENGTH_MODIFIER_LONG: case 'u' | LENGTH_MODIFIER_LONG: case 'o' | LENGTH_MODIFIER_LONG: case 'x' | LENGTH_MODIFIER_LONG: + case 'X' | LENGTH_MODIFIER_LONG: snprintf (buffer, sizeof buffer, single_fmt, va_arg (ap, long int)); break; -- cgit v1.2.3