Page MenuHomeFreeBSD

D39593.id120388.diff
No OneTemporary

D39593.id120388.diff

diff --git a/sys/sys/filedesc.h b/sys/sys/filedesc.h
--- a/sys/sys/filedesc.h
+++ b/sys/sys/filedesc.h
@@ -303,7 +303,7 @@
FILEDESC_LOCK_ASSERT(fdp);
- if (__predict_false((u_int)fd >= fdp->fd_nfiles))
+ if (__predict_false((u_int)fd >= (u_int)fdp->fd_nfiles))
return (NULL);
return (fdp->fd_ofiles[fd].fde_file);
@@ -316,7 +316,7 @@
FILEDESC_LOCK_ASSERT(fdp);
- if (__predict_false((u_int)fd >= fdp->fd_nfiles))
+ if (__predict_false((u_int)fd >= (u_int)fdp->fd_nfiles))
return (NULL);
fde = &fdp->fd_ofiles[fd];

File Metadata

Mime Type
text/plain
Expires
Sun, Feb 8, 9:36 PM (1 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28471348
Default Alt Text
D39593.id120388.diff (541 B)

Event Timeline