From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ@public.gmane.org
To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Subject: [Bug 80266] New: 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:46:58 +0000 [thread overview]
Message-ID: <bug-80266-8800@http.bugs.freedesktop.org/> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 980 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=80266
Priority: medium
Bug ID: 80266
Assignee: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Summary: Undefined operation in tgsi_ureg.c left shift of 1 by
31 places cannot be represented in type 'int'
Severity: minor
Classification: Unclassified
OS: Linux (All)
Reporter: zeccav-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Hardware: x86-64 (AMD64)
Status: NEW
Version: 10.2
Component: Drivers/DRI/nouveau
Product: Mesa
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))) {"
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 2309 bytes --]
[-- Attachment #2: Type: text/plain, Size: 181 bytes --]
_______________________________________________
Nouveau mailing list
Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
http://lists.freedesktop.org/mailman/listinfo/nouveau
next reply other threads:[~2014-06-20 5:46 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-20 5:46 bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ [this message]
[not found] ` <bug-80266-8800-V0hAGp6uBxMKqLRl/0Ahz6D7qz1kEfGD2LY78lusg7I@public.gmane.org/>
2014-06-20 5:48 ` [Bug 80266] Undefined operation in tgsi_ureg.c left shift of 1 by 31 places cannot be represented in type 'int' bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2014-06-20 9:50 ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2014-06-20 11:53 ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2014-06-20 18:12 ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2014-06-20 18:18 ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2014-06-20 18:45 ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2014-06-20 19:03 ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2014-06-20 19:12 ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2014-06-20 19:16 ` bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
2014-06-20 19:17 ` [Bug 80266] Many instances of 1<<31, which is undefined in C99 bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-80266-8800@http.bugs.freedesktop.org/ \
--to=bugzilla-daemon-cc+yj3umiyqdupfqwhejaq@public.gmane.org \
--cc=nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.