Page MenuHomeFreeBSD

D26505.diff
No OneTemporary

D26505.diff

Index: head/contrib/byacc/closure.c
===================================================================
--- head/contrib/byacc/closure.c
+++ head/contrib/byacc/closure.c
@@ -87,7 +87,7 @@
k = 0;
}
- if (cword & (unsigned)(1 << k))
+ if (cword & (1u << k))
{
rp = derives[j];
while ((rule = *rp++) >= 0)
@@ -151,7 +151,7 @@
{
for (i = 0; i < BITS_PER_WORD; ++i)
{
- if (word & (unsigned)(1 << i))
+ if (word & (1u << i))
{
itemno = rrhs[ruleno + i];
while (csp < csend && *csp < itemno)
Index: head/contrib/byacc/warshall.c
===================================================================
--- head/contrib/byacc/warshall.c
+++ head/contrib/byacc/warshall.c
@@ -28,7 +28,7 @@
while (rowj < relend)
{
- if (*ccol & (unsigned)(1 << i))
+ if (*ccol & (1u << i))
{
rp = rowi;
rend = rowj + rowsize;
@@ -70,7 +70,7 @@
rp = R;
while (rp < relend)
{
- *rp |= (unsigned)(1 << i);
+ *rp |= (1u << i);
if (++i >= BITS_PER_WORD)
{
i = 0;

File Metadata

Mime Type
text/plain
Expires
Sat, Dec 21, 9:57 PM (19 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15547505
Default Alt Text
D26505.diff (1 KB)

Event Timeline