ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/src/util/pvsum.c
(Generate patch)

Comparing src/util/pvsum.c (file contents):
Revision 2.4 by greg, Fri Apr 18 23:59:03 2025 UTC vs.
Revision 2.6 by greg, Sat Jun 28 17:30:50 2025 UTC

# Line 15 | Line 15 | static const char RCSid[] = "$Id$";
15   #include "rmatrix.h"
16   #if !defined(_WIN32) && !defined(_WIN64)
17   #include <sys/mman.h>
18 + #include <sys/wait.h>
19   #endif
20  
21   int     nprocs = 1;                     /* # of calculation processes (Unix) */
# Line 471 | Line 472 | multi_process(void)
472                                  return(0);
473                          }
474                          i = in_type==DTfloat ? ncomp*(int)sizeof(float) : ncomp+1;
475 <                        maplen = dstart + yres*xres*i;
475 >                        maplen = dstart + (size_t)yres*xres*i;
476                          imap = mmap(NULL, maplen, PROT_READ,
477                                          MAP_FILE|MAP_SHARED, fileno(finp), 0);
478                          fclose(finp);           /* will read from map (randomly) */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines