Skip to content
This repository was archived by the owner on Jan 31, 2023. It is now read-only.

Commit 9dbc00a

Browse files
authored
#42 Fix compile error
2 parents 5247244 + cd5a0ef commit 9dbc00a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/API/VersionInfo.vala

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,21 @@ public class Olifant.API.VersionInfo {
1111

1212
public static VersionInfo parse(string ver) {
1313
var info = new VersionInfo ();
14-
var parts = ver.split(".");
14+
string[] parts = ver.split(".");
1515

1616
if (parts[0] != null)
17-
info.major = uint.parse(parts[0]);
17+
info.major = parts[0].to_int();
1818

1919
if (parts[1] != null)
20-
info.minor = uint.parse(parts[1]);
20+
info.minor = parts[1].to_int();
2121

22-
if (parts[2] != null)
23-
info.patch = uint.parse(parts[2]);
22+
if (parts[2] != null)
23+
info.patch = parts[2].to_int();
2424

2525
return info;
26-
}
26+
}
2727

2828
public string show () {
2929
return "VersionInfo(major=%u, minor=%u, patch=%u)".printf (major, minor, patch);
3030
}
31-
}
31+
}

0 commit comments

Comments
 (0)