Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
    * lib/ridl/node.rb:
  • Loading branch information
jwillemsen committed Jul 17, 2023
1 parent 4a4e193 commit c1b6843
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ridl/node.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2722,7 +2722,7 @@ def has_default?

def default_label
swtype = @switchtype.resolved_type
return nil if IDL::Type::WChar === swtype
return nil if IDL::Type::WChar === swtype # No default label detection for wchar
lbls = members.collect { |m| m.labels.include?(:default) ? [] : m.labels.collect { |l| l.value } }.flatten
lbls = lbls.sort unless IDL::Type::Boolean === swtype ## work around bug in Ruby 1.9.2
def_lbl = swtype.min
Expand Down

0 comments on commit c1b6843

Please sign in to comment.