summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2018-02-08 19:09:45 +0000
committerTim-Philipp Müller <tim@centricular.com>2018-02-08 19:10:09 +0000
commitd3bfc7d469d5a8d24c12bcefbeb90523fbb2a8db (patch)
tree730b0cebe17736b85a9aca823b2b989c3d220df2
parentcebe563f167c1ab507ad2c4f78d2b833b8dda87a (diff)
meson: make version numbers ints and fix int/string comparison
WARNING: Trying to compare values of different types (str, int). The result of this is undefined and will become a hard error in a future Meson release.
-rw-r--r--meson.build10
1 files changed, 5 insertions, 5 deletions
diff --git a/meson.build b/meson.build
index 72e785a9..b782413a 100644
--- a/meson.build
+++ b/meson.build
@@ -6,11 +6,11 @@ project('gst-plugins-ugly', 'c',
gst_version = meson.project_version()
version_arr = gst_version.split('.')
-gst_version_major = version_arr[0]
-gst_version_minor = version_arr[1]
-gst_version_micro = version_arr[2]
-if version_arr.length() == 4
- gst_version_nano = version_arr[3]
+gst_version_major = version_arr[0].to_int()
+gst_version_minor = version_arr[1].to_int()
+gst_version_micro = version_arr[2].to_int()
+ if version_arr.length() == 4
+ gst_version_nano = version_arr[3].to_int()
else
gst_version_nano = 0
endif