From 4ac13621574f179e0ae9d26879687e4f90ff499a Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Fri, 31 Aug 2018 15:21:05 +0530 Subject: [PATCH] meson: gst_version_* are ints, convert them early Fixes error reported by ceyusa: gst-devtools/meson.build:23:0: ERROR: Multiplication works only with integers. --- meson.build | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/meson.build b/meson.build index 7b8ce36586..355ba27252 100644 --- a/meson.build +++ b/meson.build @@ -7,10 +7,10 @@ project('gst-devtools', '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 gst_version_minor.to_int().is_even() +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 gst_version_minor.is_even() TESTSUITE_VERSION = '@0@.@1@'.format(gst_version_major, gst_version_minor) else TESTSUITE_VERSION = 'master'