From patchwork Mon Jan 31 05:22:38 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cyril Brulebois X-Patchwork-Id: 518511 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p0V5N6gX018299 for ; Mon, 31 Jan 2011 05:23:27 GMT Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 28DE49E9BE for ; Sun, 30 Jan 2011 21:23:05 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from glenfiddich.ikibiki.org (glenfiddich.ikibiki.org [88.191.124.82]) by gabe.freedesktop.org (Postfix) with ESMTP id 1261A9E76D for ; Sun, 30 Jan 2011 21:22:46 -0800 (PST) Received: from home.ikibiki.org ([88.164.242.219] helo=kitty) by glenfiddich.ikibiki.org with esmtp (Exim 4.69) (envelope-from ) id 1PjmDs-0007h8-GT; Mon, 31 Jan 2011 06:22:44 +0100 Received: from kibi by kitty with local (Exim 4.72) (envelope-from ) id 1PjmDs-0007PS-Bv; Mon, 31 Jan 2011 06:22:44 +0100 From: Cyril Brulebois To: intel-gfx@lists.freedesktop.org Date: Mon, 31 Jan 2011 06:22:38 +0100 Message-Id: <1296451359-28449-4-git-send-email-kibi@debian.org> X-Mailer: git-send-email 1.7.2.3 In-Reply-To: <1296451359-28449-1-git-send-email-kibi@debian.org> References: <1296451359-28449-1-git-send-email-kibi@debian.org> MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH 4/5] xvmc: Silence gcc, adding a cast to work around signedness issues. X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Mon, 31 Jan 2011 05:23:35 +0000 (UTC) X-MIME-Autoconverted: from base64 to 8bit by demeter1.kernel.org id p0V5N6gX018299 diff --git a/src/xvmc/intel_xvmc.c b/src/xvmc/intel_xvmc.c index 339c133..d89cda2 100644 --- a/src/xvmc/intel_xvmc.c +++ b/src/xvmc/intel_xvmc.c @@ -1058,7 +1058,7 @@ _X_EXPORT Status XvMCLoadQMatrix(Display * display, XvMCContext * context, _X_EXPORT Status XvMCPutSlice(Display * display, XvMCContext * context, char *slice, int nbytes) { - if (xvmc_driver->put_slice(display, context, slice, nbytes)) { + if (xvmc_driver->put_slice(display, context, (unsigned char *) slice, nbytes)) { XVMC_ERR("PutSlice fail\n"); return BadValue; } @@ -1069,7 +1069,7 @@ _X_EXPORT Status XvMCPutSlice2(Display * display, XvMCContext * context, char *slice, int nbytes, int slice_code) { if (xvmc_driver->put_slice2 - (display, context, slice, nbytes, slice_code)) { + (display, context, (unsigned char *) slice, nbytes, slice_code)) { XVMC_ERR("PutSlice2 fail\n"); return BadValue; }