/vqdr/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/vqdr/trunk

« back to all changes in this revision

Viewing changes to src/utils/range.vala

  • Committer: Gustav Hartvigsson
  • Date: 2022-06-01 12:30:01 UTC
  • mfrom: (52.1.3 int64)
  • Revision ID: gustav.hartvigsson@gmail.com-20220601123001-b5xs60wwym810hg1
Merged: lp:~gustav.hartvigsson/vqdr/int64

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
  [CCode (cname = "VRangeIterator", cprefix = "v_range_iterator_")]
9
9
  public class RangeIterator {
10
10
    private Range range;
11
 
    private int current;
 
11
    private int32 current;
12
12
    public RangeIterator (Range range) {
13
13
      this.range = range;
14
14
      this.current = this.range.start;
15
15
    }
16
 
     public int get () {
 
16
     public int32 get () {
17
17
       return this.current;
18
18
     }
19
19
 
39
39
  [CCode (cname = "VRange", cprefix = "v_range_")]
40
40
  public class Range {
41
41
    public bool reverse {get; private set;}
42
 
    public int start {get; private set;}
43
 
    public int end {get; private set;}
 
42
    public int32 start {get; private set;}
 
43
    public int32 end {get; private set;}
44
44
 
45
 
    public Range (int start, int end) {
 
45
    public Range (int32 start, int32 end) {
46
46
      if (start <= end) {
47
47
        this.reverse = false;
48
48
      } else {