Changeset 40015
- Timestamp:
- Apr 13, 2017, 6:34:26 AM (9 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/cmd.data/create.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/cmd.data/create.c
r39599 r40015 40 40 } 41 41 42 // make a 1gig hard limit (test as below to avoid numerical limits of the division) 43 // 0x4000.0000 bytes is a gigabyte, divide by 8 for bytes/element 44 if (0x8000000 * delta < end - start) { 45 gprint (GP_ERR, "ERROR: attempt to create >1gigabyte vector\n"); 46 return (FALSE); 47 } 42 48 vec[0].Nelements = MAX(0, (end - start) / delta); 43 49
Note:
See TracChangeset
for help on using the changeset viewer.
