aboutsummaryrefslogtreecommitdiffstats
path: root/src/tools
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/vppapigen/gram.y6
-rw-r--r--src/tools/vppapigen/node.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/tools/vppapigen/gram.y b/src/tools/vppapigen/gram.y
index 9cea602391a..52bb65c524a 100644
--- a/src/tools/vppapigen/gram.y
+++ b/src/tools/vppapigen/gram.y
@@ -53,9 +53,9 @@ stmt: flist defn {$$ = set_flags($1, $2);}
| defn {$$ = $1;}
;
-flist: flist flag {$$ = (YYSTYPE)(unsigned long long)
- ((unsigned long long) $1
- | (unsigned long long) $2);}
+flist: flist flag {$$ = (YYSTYPE)(unsigned long)
+ ((unsigned long) $1
+ | (unsigned long) $2);}
| flag {$$ = $1;}
;
diff --git a/src/tools/vppapigen/node.c b/src/tools/vppapigen/node.c
index 9f234037774..15868ee5aaa 100644
--- a/src/tools/vppapigen/node.c
+++ b/src/tools/vppapigen/node.c
@@ -397,7 +397,7 @@ void node_define_generate (node_t *this, enum passid which, FILE *fp)
fprintf(fp, ",\n");
}
indent_me(fp);
- fprintf (fp, "{\"crc\" : \"0x%08x\"}\n", (u32)(u64)CDATA3);
+ fprintf (fp, "{\"crc\" : \"0x%08x\"}\n", (u32)(uword)CDATA3);
indent -= 4;
indent_me(fp);
fprintf(fp, "]");
@@ -1219,7 +1219,7 @@ void generate_msg_name_crc_list (YYSTYPE a1, FILE *fp)
if (!(np->flags & NODE_FLAG_TYPEONLY)) {
fprintf (fp, "\\\n_(VL_API_%s, %s, %08x) ",
uppercase (np->data[0]), (i8 *) np->data[0],
- (u32)(u64)np->data[3]);
+ (u32)(uword)np->data[3]);
}
}
np = np->peer;