Files
xen/tools/libxl
Juergen Gross 45a348ebab libxl: use llabs() instead abs() for int64_t argument
Commit 57f8b13c72 ("libxl: memory size
in kb requires 64 bit variable") introduced a bug: abs() shouldn't
be called with an int64_t argument. llabs() is to be used here.

Caught by clang build with error message:

libxl.c:4198:33: error: absolute value function 'abs' given an argument
of type
    'int64_t' (aka 'long') but has parameter of type 'int' which may cause
    truncation of value [-Werror,-Wabsolute-value]
    if (target_memkb < 0 && abs(target_memkb) > current_target_memkb)

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
2016-08-03 10:46:58 +01:00
..
2013-10-10 15:48:55 +01:00
2012-10-05 14:34:30 +01:00
2014-07-10 13:06:55 +01:00
2016-04-06 14:48:16 +01:00
2016-04-20 14:34:04 +01:00
2013-10-10 15:48:55 +01:00
2011-10-12 16:21:32 +01:00
2015-01-19 15:32:17 +00:00
2015-01-27 16:34:05 +00:00