(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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user