~ubuntu-branches/ubuntu/precise/insighttoolkit/precise

« back to all changes in this revision

Viewing changes to Utilities/NrrdIO/methodsNrrd.c

  • Committer: Bazaar Package Importer
  • Author(s): Steve M. Robbins
  • Date: 2008-12-19 20:16:49 UTC
  • mfrom: (1.2.1 upstream) (4.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20081219201649-drt97guwl2ryt0cn

* New upstream version.
  - patches/nifti-versioning.patch: Remove.  Applied upstream.
  - control:
  - rules: Update version numbers, package names.

* control: Build-depend on uuid-dev (gdcm uses it).

* copyright: Update download URL.

* rules: Adhere to parallel=N in DEB_BUILD_OPTIONS by setting MAKEFLAGS.

* compat: Set to 7.
* control: Update build-dep on debhelper to version >= 7.

* CMakeCache.txt.debian: Set CMAKE_BUILD_TYPE to "RELEASE" so that we
  build with -O3 (not -O2), necessary to optimize the templated code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
655
655
nrrdAlloc_nva (Nrrd *nrrd, int type, unsigned int dim, const size_t *size) {
656
656
  char me[] = "nrrdAlloc_nva", err[AIR_STRLEN_MED];
657
657
  size_t num;
658
 
  int esize;
 
658
  size_t esize;
659
659
 
660
660
  if (!(nrrd && size)) {
661
661
    sprintf(err, "%s: got NULL pointer", me);
687
687
  esize = nrrdElementSize(nrrd);
688
688
  nrrd->data = calloc(num, esize);
689
689
  if (!(nrrd->data)) {
690
 
    sprintf(err, "%s: calloc(" _AIR_SIZE_T_CNV ",%d) failed",
 
690
    sprintf(err, "%s: calloc(" _AIR_SIZE_T_CNV ",%zd) failed",
691
691
            me, num, esize);
692
692
    biffAdd(NRRD, err); return 1 ;
693
693
  }