/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:09:53 UTC
  • mto: This revision was merged to the branch mainline in revision 55.
  • Revision ID: gustav.hartvigsson@gmail.com-20220601120953-3t2j3v68izknnmyw
int -> int32

Finished the last of the convertion to fixed sized integer values.
(where applicable).

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
  public class RangeIterator {
4
4
    private Range range;
5
 
    private int current;
 
5
    private int32 current;
6
6
    public RangeIterator (Range range) {
7
7
      this.range = range;
8
8
      this.current = this.range.start;
9
9
    }
10
 
     public int get () {
 
10
     public int32 get () {
11
11
       return this.current;
12
12
     }
13
13
 
33
33
 
34
34
  public class Range {
35
35
    public bool reverse {get; private set;}
36
 
    public int start {get; private set;}
37
 
    public int end {get; private set;}
 
36
    public int32 start {get; private set;}
 
37
    public int32 end {get; private set;}
38
38
 
39
 
    public Range (int start, int end) {
 
39
    public Range (int32 start, int32 end) {
40
40
      if (start <= end) {
41
41
        this.reverse = false;
42
42
      } else {