- Timestamp:
- Jun 12, 2016, 10:20:48 AM (10 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/cmd.data/create.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/cmd.data/create.c
r28335 r39599 26 26 if (argc == 5) delta = atof (argv[4]); 27 27 28 if ( (start == end) || (delta == 0)) {28 if (!isfinite(start) || !isfinite(end) || (start == end) || (delta == 0)) { 29 29 gprint (GP_ERR, "error in value: %f to %f, %f\n", start, end, delta); 30 30 return (FALSE); … … 40 40 } 41 41 42 vec[0].Nelements = (end - start) / delta;42 vec[0].Nelements = MAX(0, (end - start) / delta); 43 43 44 44 if (INT) {
Note:
See TracChangeset
for help on using the changeset viewer.
