Class: AdLint::Cc1::LongTypeId

Inherits:
StandardTypeId show all
Defined in:
lib/adlint/cc1/type.rb

Instance Method Summary collapse

Methods inherited from TypeId

#eql?, #hash

Constructor Details

#initializeLongTypeId

Returns a new instance of LongTypeId.



4330
4331
4332
# File 'lib/adlint/cc1/type.rb', line 4330

def initialize
  super("long")
end

Instance Method Details

#==(rhs_id) ⇒ Object



4334
4335
4336
4337
4338
4339
4340
4341
# File 'lib/adlint/cc1/type.rb', line 4334

def ==(rhs_id)
  case rhs_id
  when LongTypeId, SignedLongTypeId, LongIntTypeId, SignedLongIntTypeId
    true
  else
    false
  end
end