Changeset 8627 for trunk/psLib/src/math/psBinaryOp.c
- Timestamp:
- Aug 25, 2006, 6:34:28 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psBinaryOp.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psBinaryOp.c
r8232 r8627 30 30 * @author Robert DeSonia, MHPCC 31 31 * 32 * @version $Revision: 1. 9$ $Name: not supported by cvs2svn $33 * @date $Date: 2006-08- 08 23:32:23$32 * @version $Revision: 1.10 $ $Name: not supported by cvs2svn $ 33 * @date $Date: 2006-08-26 04:34:28 $ 34 34 * 35 35 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 107 107 long n2 = ((psVector*)IN2)->n; \ 108 108 if (n1 != n2) { \ 109 psError(PS_ERR_BAD_PARAMETER_SIZE, true, _("Number of elements inconsistent, % d vs %d. Number of elements must match."), n1, n2); \109 psError(PS_ERR_BAD_PARAMETER_SIZE, true, _("Number of elements inconsistent, %ld vs %ld. Number of elements must match."), n1, n2); \ 110 110 if (OUT != IN1 && OUT != IN2) { \ 111 111 psFree(OUT); \ … … 129 129 if (((psVector*)IN1)->type.dimen == PS_DIMEN_VECTOR) { /* Regular vectors */ \ 130 130 if (n1 != numRows2) { \ 131 psError(PS_ERR_BAD_PARAMETER_SIZE, true, _("Number of elements inconsistent, % d vs %d. Number of elements must match."), n1, numRows2); \131 psError(PS_ERR_BAD_PARAMETER_SIZE, true, _("Number of elements inconsistent, %ld vs %ld. Number of elements must match."), n1, numRows2); \ 132 132 if (OUT != IN1 && OUT != IN2) { \ 133 133 psFree(OUT); \ … … 146 146 } else { /* Transposed vectors */ \ 147 147 if (n1 != numCols2) { \ 148 psError(PS_ERR_BAD_PARAMETER_SIZE, true, _("Number of elements inconsistent, % d vs %d. Number of elements must match."), n1, numCols2); \148 psError(PS_ERR_BAD_PARAMETER_SIZE, true, _("Number of elements inconsistent, %ld vs %ld. Number of elements must match."), n1, numCols2); \ 149 149 if (OUT != IN1 && OUT != IN2) { \ 150 150 psFree(OUT); \ … … 187 187 if (((psVector*)IN2)->type.dimen == PS_DIMEN_VECTOR) { /* Regular vectors */ \ 188 188 if (n2 != numRows1) { \ 189 psError(PS_ERR_BAD_PARAMETER_SIZE, true, _("Number of elements inconsistent, % d vs %d. Number of elements must match."), n2, numRows1); \189 psError(PS_ERR_BAD_PARAMETER_SIZE, true, _("Number of elements inconsistent, %ld vs %ld. Number of elements must match."), n2, numRows1); \ 190 190 if (OUT != IN1 && OUT != IN2) { \ 191 191 psFree(OUT); \ … … 204 204 } else { /* Transposed vectors */ \ 205 205 if (n2 != numCols1) { \ 206 psError(PS_ERR_BAD_PARAMETER_SIZE, true, _("Number of elements inconsistent, % d vs %d. Number of elements must match."), n2, numCols1); \206 psError(PS_ERR_BAD_PARAMETER_SIZE, true, _("Number of elements inconsistent, %ld vs %ld. Number of elements must match."), n2, numCols1); \ 207 207 if (OUT != IN1) { \ 208 208 psFree(OUT); \ … … 229 229 long numCols2 = ((psImage*)IN2)->numCols; \ 230 230 if (numRows1 != numRows2 || numCols1 != numCols2) { \ 231 psError(PS_ERR_BAD_PARAMETER_SIZE, true, _("Specified psImage dimensions differed, % dx%d vs %dx%d."), \231 psError(PS_ERR_BAD_PARAMETER_SIZE, true, _("Specified psImage dimensions differed, %ldx%ld vs %ldx%ld."), \ 232 232 numCols1, numRows1, numCols2, numRows2); \ 233 233 if (OUT != IN1 && OUT != IN2) { \ … … 360 360 } else { \ 361 361 psError(PS_ERR_BAD_PARAMETER_VALUE, true, \ 362 "Types (%x,%x) are not appropriate for logical OR.\n", IN1->type, IN2->type); \362 "Types (%x,%x) are not appropriate for logical OR.\n", IN1->type, IN2->type); \ 363 363 return NULL; \ 364 364 } \
Note:
See TracChangeset
for help on using the changeset viewer.
