(length_type): cast size_t argument to unsigned long and use

appropriate printf format


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15669 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2005-07-19 18:01:59 +00:00
parent c03dd92230
commit a0f68f2640

View File

@@ -237,7 +237,8 @@ length_type (const char *name, const Type *t, const char *variable)
break;
case TTag:
length_type (name, t->subtype, variable);
fprintf (codefile, "ret += %d + length_len (ret);\n", length_tag(t->tag.tagvalue));
fprintf (codefile, "ret += %lu + length_len (ret);\n",
(unsigned long)length_tag(t->tag.tagvalue));
break;
case TOID:
length_primitive ("oid", name, variable);