File tree 1 file changed +3
-3
lines changed
compiler/cpp/src/generate
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1522,17 +1522,17 @@ namespace {
1522
1522
1523
1523
virtual void visitList (t_list *type) {
1524
1524
string typeName = get_thrift_name (type);
1525
- result = " [NSString stringWithFormat:@\" " + typeName + " (size=%tu )\" , [" + fieldName + " count]]" ;
1525
+ result = " [NSString stringWithFormat:@\" " + typeName + " (size=%lu )\" , (unsigned long) [" + fieldName + " count]]" ;
1526
1526
}
1527
1527
1528
1528
virtual void visitSet (t_set *type) {
1529
1529
string typeName = get_thrift_name (type);
1530
- result = " [NSString stringWithFormat:@\" " + typeName + " (size=%tu )\" , [" + fieldName + " count]]" ;
1530
+ result = " [NSString stringWithFormat:@\" " + typeName + " (size=%lu )\" , (unsigned long) [" + fieldName + " count]]" ;
1531
1531
}
1532
1532
1533
1533
virtual void visitMap (t_map *type) {
1534
1534
string typeName = get_thrift_name (type);
1535
- result = " [NSString stringWithFormat:@\" " + typeName + " (size=%tu )\" , [" + fieldName + " count]]" ;
1535
+ result = " [NSString stringWithFormat:@\" " + typeName + " (size=%lu )\" , (unsigned long) [" + fieldName + " count]]" ;
1536
1536
}
1537
1537
1538
1538
virtual void visitStruct (t_struct *) {
You can’t perform that action at this time.
0 commit comments