summaryrefslogtreecommitdiff
path: root/fitz/obj_parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'fitz/obj_parse.c')
-rw-r--r--fitz/obj_parse.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/fitz/obj_parse.c b/fitz/obj_parse.c
index 1b500d3d..31753222 100644
--- a/fitz/obj_parse.c
+++ b/fitz/obj_parse.c
@@ -35,7 +35,7 @@ static inline int isregular(int ch)
static inline int fromhex(char ch)
{
if (ch >= '0' && ch <= '9')
- return ch - '0';
+ return ch - '0';
else if (ch >= 'A' && ch <= 'F')
return ch - 'A' + 0xA;
else if (ch >= 'a' && ch <= 'f')
@@ -322,21 +322,21 @@ static fz_error parseobj(fz_obj **obj, pdf_xref *xref, char **sp, struct vap *v)
case 'f': *obj = fz_newreal((float)va_arg(v->ap, double)); break;
case 'n': *obj = fz_newname(va_arg(v->ap, char*)); break;
case 'r':
- num = va_arg(v->ap, int);
- gen = va_arg(v->ap, int);
- *obj = fz_newindirect(num, gen, xref);
- break;
+ num = va_arg(v->ap, int);
+ gen = va_arg(v->ap, int);
+ *obj = fz_newindirect(num, gen, xref);
+ break;
case 's':
- tmp = va_arg(v->ap, char*);
- *obj = fz_newstring(tmp, strlen(tmp));
- break;
+ tmp = va_arg(v->ap, char*);
+ *obj = fz_newstring(tmp, strlen(tmp));
+ break;
case '#':
- tmp = va_arg(v->ap, char*);
- len = va_arg(v->ap, int);
- *obj = fz_newstring(tmp, len);
- break;
+ tmp = va_arg(v->ap, char*);
+ len = va_arg(v->ap, int);
+ *obj = fz_newstring(tmp, len);
+ break;
default:
- return fz_throw("unknown format specifier in packobj: '%c'", *s);
+ return fz_throw("unknown format specifier in packobj: '%c'", *s);
}
s ++;