- Timestamp:
- Jun 6, 2015, 10:03:56 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ohana.20150429/src/opihi/cmd.data/read_vectors.c
r38367 r38406 487 487 } 488 488 if (start < 0) ESCAPE ("invalid range: start < 0\n"); 489 if (start >= header.Naxis[1]) ESCAPE ("invalid range: start >= Ny ( %d)\n", header.Naxis[1]);489 if (start >= header.Naxis[1]) ESCAPE ("invalid range: start >= Ny ("OFF_T_FMT")\n", header.Naxis[1]); 490 490 if (Nrows < 0) ESCAPE ("invalid range: Nrows < 0\n"); 491 491 492 492 // just a warning: 493 493 if (start + Nrows > header.Naxis[1]) { 494 if (VERBOSE) gprint (GP_ERR, "NOTE: reading last block will return only %drows\n", header.Naxis[1] - start);494 if (VERBOSE) gprint (GP_ERR, "NOTE: reading last block will return only "OFF_T_FMT" rows\n", header.Naxis[1] - start); 495 495 } 496 496 … … 555 555 556 556 vecType = OPIHI_INT; 557 if (!strcmp (type, "double") || !strcmp (type, "float") ) {557 if (!strcmp (type, "double") || !strcmp (type, "float") || !strcmp (type, "int64_t")) { 558 558 vecType = OPIHI_FLT; 559 559 }
Note:
See TracChangeset
for help on using the changeset viewer.
