|
|
@@ -7,8 +7,8 @@ namespace Invercargill {
|
|
|
public override bool can_wrap(GLib.Type element_type) {
|
|
|
return element_type.is_a(typeof(int));
|
|
|
}
|
|
|
- protected override int convert(int i) {
|
|
|
- return i;
|
|
|
+ protected override int convert(uint i) {
|
|
|
+ return (int)i;
|
|
|
}
|
|
|
protected override bool greater_than(int a, int b) {
|
|
|
return a > b;
|
|
|
@@ -43,7 +43,7 @@ namespace Invercargill {
|
|
|
public override bool can_wrap(GLib.Type element_type) {
|
|
|
return element_type.is_a(typeof(uint));
|
|
|
}
|
|
|
- protected override uint convert(int i) {
|
|
|
+ protected override uint convert(uint i) {
|
|
|
return i;
|
|
|
}
|
|
|
protected override bool greater_than(uint a, uint b) {
|
|
|
@@ -79,7 +79,7 @@ namespace Invercargill {
|
|
|
public override bool can_wrap(GLib.Type element_type) {
|
|
|
return element_type.is_a(typeof(int8));
|
|
|
}
|
|
|
- protected override int8 convert(int i) {
|
|
|
+ protected override int8 convert(uint i) {
|
|
|
return (int8)i;
|
|
|
}
|
|
|
protected override bool greater_than(int8 a, int8 b) {
|
|
|
@@ -115,7 +115,7 @@ namespace Invercargill {
|
|
|
public override bool can_wrap(GLib.Type element_type) {
|
|
|
return element_type.is_a(typeof(uint8));
|
|
|
}
|
|
|
- protected override uint8 convert(int i) {
|
|
|
+ protected override uint8 convert(uint i) {
|
|
|
return (uint8)i;
|
|
|
}
|
|
|
protected override bool greater_than(uint8 a, uint8 b) {
|
|
|
@@ -151,7 +151,7 @@ namespace Invercargill {
|
|
|
public override bool can_wrap(GLib.Type element_type) {
|
|
|
return element_type.is_a(typeof(int16));
|
|
|
}
|
|
|
- protected override int16 convert(int i) {
|
|
|
+ protected override int16 convert(uint i) {
|
|
|
return (int16)i;
|
|
|
}
|
|
|
protected override bool greater_than(int16 a, int16 b) {
|
|
|
@@ -187,7 +187,7 @@ namespace Invercargill {
|
|
|
public override bool can_wrap(GLib.Type element_type) {
|
|
|
return element_type.is_a(typeof(uint16));
|
|
|
}
|
|
|
- protected override uint16 convert(int i) {
|
|
|
+ protected override uint16 convert(uint i) {
|
|
|
return (uint16)i;
|
|
|
}
|
|
|
protected override bool greater_than(uint16 a, uint16 b) {
|
|
|
@@ -223,7 +223,7 @@ namespace Invercargill {
|
|
|
public override bool can_wrap(GLib.Type element_type) {
|
|
|
return element_type.is_a(typeof(int32));
|
|
|
}
|
|
|
- protected override int32 convert(int i) {
|
|
|
+ protected override int32 convert(uint i) {
|
|
|
return (int32)i;
|
|
|
}
|
|
|
protected override bool greater_than(int32 a, int32 b) {
|
|
|
@@ -259,7 +259,7 @@ namespace Invercargill {
|
|
|
public override bool can_wrap(GLib.Type element_type) {
|
|
|
return element_type.is_a(typeof(uint32));
|
|
|
}
|
|
|
- protected override uint32 convert(int i) {
|
|
|
+ protected override uint32 convert(uint i) {
|
|
|
return (uint32)i;
|
|
|
}
|
|
|
protected override bool greater_than(uint32 a, uint32 b) {
|
|
|
@@ -295,7 +295,7 @@ namespace Invercargill {
|
|
|
public override bool can_wrap(GLib.Type element_type) {
|
|
|
return element_type.is_a(typeof(int64?));
|
|
|
}
|
|
|
- protected override int64? convert(int i) {
|
|
|
+ protected override int64? convert(uint i) {
|
|
|
return (int64)i;
|
|
|
}
|
|
|
protected override bool greater_than(int64? a, int64? b) {
|
|
|
@@ -331,7 +331,7 @@ namespace Invercargill {
|
|
|
public override bool can_wrap(GLib.Type element_type) {
|
|
|
return element_type.is_a(typeof(uint64?));
|
|
|
}
|
|
|
- protected override uint64? convert(int i) {
|
|
|
+ protected override uint64? convert(uint i) {
|
|
|
return (uint64)i;
|
|
|
}
|
|
|
protected override bool greater_than(uint64? a, uint64? b) {
|
|
|
@@ -367,7 +367,7 @@ namespace Invercargill {
|
|
|
public override bool can_wrap(GLib.Type element_type) {
|
|
|
return element_type.is_a(typeof(double?));
|
|
|
}
|
|
|
- protected override double? convert(int i) {
|
|
|
+ protected override double? convert(uint i) {
|
|
|
return (double?)i;
|
|
|
}
|
|
|
protected override bool greater_than(double? a, double? b) {
|
|
|
@@ -403,7 +403,7 @@ namespace Invercargill {
|
|
|
public override bool can_wrap(GLib.Type element_type) {
|
|
|
return element_type.is_a(typeof(float?));
|
|
|
}
|
|
|
- protected override float? convert(int i) {
|
|
|
+ protected override float? convert(uint i) {
|
|
|
return (float?)i;
|
|
|
}
|
|
|
protected override bool greater_than(float? a, float? b) {
|