From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ@public.gmane.org
Subject: [Bug 80266] Undefined operation in tgsi_ureg.c left shift
of 1 by 31 places cannot be represented in type 'int'
Date: Fri, 20 Jun 2014 05:48:55 +0000
Message-ID:
References:
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===============0036901087=="
Return-path:
In-Reply-To:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: nouveau-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Sender: "Nouveau"
To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
List-Id: nouveau.vger.kernel.org
--===============0036901087==
Content-Type: multipart/alternative; boundary="1403243335.A356f0c0.19656"; charset="us-ascii"
--1403243335.A356f0c0.19656
Date: Fri, 20 Jun 2014 05:48:55 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
https://bugs.freedesktop.org/show_bug.cgi?id=80266
--- Comment #1 from Ilia Mirkin ---
(In reply to comment #0)
> In tgsi_ureg.c:1498
> "if (ureg->vs_inputs[i/32] & (1 << (i%32))) {"
> when i==31 then 1 << 31 may be computed.
> With gcc option -std=c99 this is wrong because the result cannot be int.
>
> Perhaps the right instruction is
> "if (ureg->vs_inputs[i/32] & ((unsigned) 1 << (i%32))) {"
Where is -std=c99 coming from? Also I'd guess the better thing is 1U instead of
(unsigned)1 :)
Feel free to send a patch btw.
--
You are receiving this mail because:
You are the assignee for the bug.
--1403243335.A356f0c0.19656
Date: Fri, 20 Jun 2014 05:48:55 +0000
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
Comment # 1
on bug 80266
from Ilia Mirkin
(In reply to comment #0)
> In tgsi_ureg.c:1498
> "if (ureg->vs_inputs[i/32] & (1 << (i%32))) {"
> when i==31 then 1 << 31 may be computed.
> With gcc option -std=c99 this is wrong because the result cannot be int.
>
> Perhaps the right instruction is
> "if (ureg->vs_inputs[i/32] & ((unsigned) 1 << (i%32))) {"
Where is -std=c99 coming from? Also I'd guess the better thing is 1U instead of
(unsigned)1 :)
Feel free to send a patch btw.
You are receiving this mail because:
- You are the assignee for the bug.
--1403243335.A356f0c0.19656--
--===============0036901087==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Nouveau mailing list
Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
http://lists.freedesktop.org/mailman/listinfo/nouveau
--===============0036901087==--