# | Line 122 | Line 122 | cm_load(const char *fname, int nrows, int ncols, int d | |
---|---|---|
122 | flockfile(fp); | |
123 | #endif | |
124 | if (dtype != DTascii) | |
125 | < | SET_FILE_BINARY(fp); |
125 | > | SET_FILE_BINARY(fp); /* doesn't really work */ |
126 | if (dtype == DTfromHeader) | |
127 | dtype = getDTfromHeader(fp); | |
128 | switch (dtype) { | |
# | Line 266 | Line 266 | cm_column(const CMATRIX *cm, int c) | |
266 | int dr; | |
267 | ||
268 | if ((c < 0) | (c >= cm->ncols)) | |
269 | < | return(NULL); |
269 | > | error(INTERNAL, "column requested outside matrix"); |
270 | cvr = cm_alloc(cm->nrows, 1); | |
271 | if (cvr == NULL) | |
272 | return(NULL); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |