From e4e5f981eb1cf124e2f8e4e49ccfee55edd2c42c Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Wed, 20 Nov 2019 11:26:50 -0500 Subject: Fix compute_int() when the value is -1 --- mesonbuild/compilers/mixins/clike.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mesonbuild') diff --git a/mesonbuild/compilers/mixins/clike.py b/mesonbuild/compilers/mixins/clike.py index ce3d9d7..b5992ef 100644 --- a/mesonbuild/compilers/mixins/clike.py +++ b/mesonbuild/compilers/mixins/clike.py @@ -423,7 +423,7 @@ class CLikeCompiler: cur = maxint high = cur else: - low = cur = -1 + high = cur = -1 while self._compile_int('%s < %d' % (expression, cur), prefix, env, extra_args, dependencies): high = cur - 1 if high < minint: -- cgit v1.1