[cairo-commit] src/cairo-output-stream.c
Carl Worth
cworth at kemper.freedesktop.org
Tue Jun 20 10:58:42 PDT 2006
src/cairo-output-stream.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletion(-)
New commits:
diff-tree 3465ae1c58a87382c33117f6c5dec52403c9694e (from bb11980f14560ea16174c6531678b9b7a623f813)
Author: Carl Worth <cworth at cworth.org>
Date: Tue Jun 20 10:43:53 2006 -0700
output-stream: Support %X in addition to %x
diff --git a/src/cairo-output-stream.c b/src/cairo-output-stream.c
index 784d159..96ff8ce 100644
--- a/src/cairo-output-stream.c
+++ b/src/cairo-output-stream.c
@@ -314,7 +314,7 @@ _cairo_output_stream_vprintf (cairo_outp
_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_outp
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;
More information about the cairo-commit
mailing list