From dba5b800e38f85fc8b5f30d35224cabf4cc12fb5 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Fri, 25 Jul 2008 09:40:14 +0100 Subject: [PATCH] stubdom: fix do_xen_hypercall error report call.result is an unsigned long Signed-off-by: Samuel Thibault --- tools/libxc/xc_minios.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/libxc/xc_minios.c b/tools/libxc/xc_minios.c index 3781907d15..f353b9840c 100644 --- a/tools/libxc/xc_minios.c +++ b/tools/libxc/xc_minios.c @@ -117,8 +117,8 @@ int do_xen_hypercall(int xc_handle, privcmd_hypercall_t *hypercall) errno = -ret; return -1; } - if (call.result < 0) { - errno = -call.result; + if ((long) call.result < 0) { + errno = - (long) call.result; return -1; } return call.result; -- 2.30.2