##// END OF EJS Templates
xdiff: fix a hard crash on Windows...
Matt Harbison -
r36941:d40b9e29 default
parent child Browse files
Show More
@@ -342,7 +342,7 b' int xdl_do_diff(mmfile_t *mf1, mmfile_t '
342 * One is to store the forward path and one to store the backward path.
342 * One is to store the forward path and one to store the backward path.
343 */
343 */
344 ndiags = xe->xdf1.nreff + xe->xdf2.nreff + 3;
344 ndiags = xe->xdf1.nreff + xe->xdf2.nreff + 3;
345 if (!(kvd = (int64_t *) xdl_malloc((2 * ndiags + 2) * sizeof(long)))) {
345 if (!(kvd = (int64_t *) xdl_malloc((2 * ndiags + 2) * sizeof(int64_t)))) {
346
346
347 xdl_free_env(xe);
347 xdl_free_env(xe);
348 return -1;
348 return -1;
@@ -296,9 +296,9 b' static int xdl_prepare_ctx(unsigned int '
296 goto abort;
296 goto abort;
297 memset(rchg, 0, (nrec + 2) * sizeof(char));
297 memset(rchg, 0, (nrec + 2) * sizeof(char));
298
298
299 if (!(rindex = (int64_t *) xdl_malloc((nrec + 1) * sizeof(long))))
299 if (!(rindex = (int64_t *) xdl_malloc((nrec + 1) * sizeof(int64_t))))
300 goto abort;
300 goto abort;
301 if (!(ha = (uint64_t *) xdl_malloc((nrec + 1) * sizeof(unsigned long))))
301 if (!(ha = (uint64_t *) xdl_malloc((nrec + 1) * sizeof(uint64_t))))
302 goto abort;
302 goto abort;
303
303
304 xdf->nrec = nrec;
304 xdf->nrec = nrec;
General Comments 0
You need to be logged in to leave comments. Login now