Browse files

Fixed ranges for to_vmrange in section and segment

  • Loading branch information...
1 parent 5132c7f commit cf25a3069eed3169ab56689e77c65f991f3fa373 @farcaller farcaller committed Apr 24, 2012
Showing with 4 additions and 4 deletions.
  1. +1 −1 lib/indis-core/section.rb
  2. +1 −1 lib/indis-core/segment.rb
  3. +1 −1 spec/indis-core/section_spec.rb
  4. +1 −1 spec/indis-core/segment_spec.rb
View
2 lib/indis-core/section.rb
@@ -34,7 +34,7 @@ def initialize(seg, name, vmaddr, vmsize, iooff, type, attrs)
end
def to_vmrange
- @vmaddr..(@vmaddr+@vmsize)
+ @vmaddr...(@vmaddr+@vmsize)
end
def bytes
View
2 lib/indis-core/segment.rb
@@ -63,7 +63,7 @@ def initialize(target, name, vmaddr, vmsize, iooff, bytes)
#
# @return [Range] the range of all addresses
def to_vmrange
- @vmaddr..(@vmaddr+@vmsize)
+ @vmaddr...(@vmaddr+@vmsize)
end
private
View
2 spec/indis-core/section_spec.rb
@@ -3,7 +3,7 @@
describe Indis::Section do
it "should provide a correct range for its vm region" do
sect = Indis::Section.new(double('Segment'), '__text', 0x4096, 120, 0, :undef, [])
- sect.to_vmrange.should == (0x4096..0x410e)
+ sect.to_vmrange.should == (0x4096...0x410e)
end
it "should provide bytes value from segment based on io offset" do
View
2 spec/indis-core/segment_spec.rb
@@ -3,7 +3,7 @@
describe Indis::Segment do
it "should provide a correct range for its vm region" do
seg = Indis::Segment.new(double('Target'), '__TEXT', 0x4096, 120, 0, '')
- seg.to_vmrange.should == (0x4096..0x410e)
+ seg.to_vmrange.should == (0x4096...0x410e)
end
it "should provide bytes value based on io offset" do

0 comments on commit cf25a30

Please sign in to comment.