~logan/ubuntu/trusty/suitesparse/4.2.1-3ubuntu1

« back to all changes in this revision

Viewing changes to CHOLMOD/MatrixOps/cholmod_submatrix.c

  • Committer: Bazaar Package Importer
  • Author(s): Rafael Laboissiere, Rafael Laboissiere, Ondrej Certik
  • Date: 2008-02-21 14:46:50 UTC
  • mfrom: (1.1.2 upstream) (5.1.1 hardy)
  • Revision ID: james.westby@ubuntu.com-20080221144650-tgeppgj0t7s759i8
Tags: 3.1.0-3
[ Rafael Laboissiere ]
* Upload to unstable

[ Ondrej Certik ]
* XS-DM-Upload-Allowed: yes field added
* Ondrej Certik added to uploaders

Show diffs side-by-side

added added

removed removed

Lines of Context:
110
110
        return (NULL) ;
111
111
    }
112
112
    Common->status = CHOLMOD_OK ;
113
 
    ASSERT (CHOLMOD(dump_sparse) (A, "A", Common) >= 0) ;
114
113
 
115
114
    /* ---------------------------------------------------------------------- */
116
115
    /* allocate workspace */
160
159
        ERROR (CHOLMOD_TOO_LARGE, "problem too large") ;
161
160
        return (NULL) ;
162
161
    }
163
 
    s = MAX3 (s, cncol, cnrow) ;
 
162
    s = MAX3 (s, ((size_t) cncol), ((size_t) cnrow)) ;
164
163
 
165
164
    CHOLMOD(allocate_work) (anrow, s, 0, Common) ;
166
165
    if (Common->status < CHOLMOD_OK)