/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/libvqdr/variable.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:
8
8
    public FastNumber max_val;
9
9
    public FastNumber current_val;
10
10
    
11
 
    public Variable (int min = 0, int max = 0, int current = 0) {
 
11
    public Variable (int32 min = 0, int32 max = 0, uint32 current = 0) {
12
12
      this.max_val.number = max;
13
13
      this.min_val.number = min;
14
14
      this.current_val.number = current;
39
39
     * This is the same as @c compare. It is an alias to the same C function.
40
40
     */
41
41
    [CCode (cname = "vqdr_expression_variable_equals")]
42
 
    public static extern int static_compare (Variable a, Variable b);
 
42
    public static extern int32 static_compare (Variable a, Variable b);
43
43
    
44
44
    /**
45
45
     * Is this instance equal to the other?
48
48
      return !(bool) this.compare (other);
49
49
    }
50
50
    
51
 
    public bool equals_values (int min, int max, int current) {
 
51
    public bool equals_values (int32 min, int32 max, int32 current) {
52
52
      return (this.current_val.number == current) &&
53
53
             (this.max_val.number == max) &&
54
54
             (this.min_val.number == min);