ruby_mach: Update cputype case block.

MachOFile#cputype now returns a Symbol.
This commit is contained in:
William Woodruff 2016-06-17 20:41:08 -04:00 committed by Martin Afanasjew
parent 27e489e4c0
commit f3a6385c8c

View File

@ -22,10 +22,8 @@ module RubyMachO
machos.each do |m|
arch = case m.cputype
when "CPU_TYPE_I386" then :i386
when "CPU_TYPE_X86_64" then :x86_64
when "CPU_TYPE_POWERPC" then :ppc7400
when "CPU_TYPE_POWERPC64" then :ppc64
when :x86_64, :i386, :ppc64 then m.cputype
when :ppc then :ppc7400
else :dunno
end