We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f500eb commit accd0f4Copy full SHA for accd0f4
1 file changed
meta/gensairpc.pl
@@ -447,13 +447,14 @@ sub get_attr_type {
447
448
# First, check if we have enum
449
return 's32' if ( $attr->type->name ~~ $all_enums );
450
+ return 's32' if ( $attr->type->name eq "sai_object_type_t" ); # special case
451
452
# Try to compare types of attribute and attr value otherwise
453
for ( @{ $attr_types->members } ) {
454
return $_->thrift_name if ( $type eq $_->type->thrift_name );
455
}
456
- carp colored( "Unknown type $type of attribute " . $attr->name, 'red' );
457
+ croak colored( "Unknown type $type of attribute " . $attr->name, 'red' );
458
return;
459
460
0 commit comments