~ubuntu-branches/ubuntu/breezy/proj/breezy

« back to all changes in this revision

Viewing changes to src/bchgen.c

  • Committer: Bazaar Package Importer
  • Author(s): Peter S Galbraith
  • Date: 2004-11-06 19:44:53 UTC
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20041106194453-axnsmkh1zplal8mz
Tags: upstream-4.4.9
ImportĀ upstreamĀ versionĀ 4.4.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
                                return(1);
21
21
                }
22
22
        }
23
 
        if (!(c = vector1(nu, sizeof(projUV)))) return 1;
 
23
        if (!(c = (projUV *) vector1(nu, sizeof(projUV)))) return 1;
24
24
        fac = 2. / nu;
25
25
        for ( j = 0; j < nv ; ++j) {
26
26
                for ( i = 0; i < nu; ++i) {
38
38
                        f[i][j] = c[i];
39
39
        }
40
40
        pj_dalloc(c);
41
 
        if (!(c = vector1(nv, sizeof(projUV)))) return 1;
 
41
        if (!(c = (projUV*) vector1(nv, sizeof(projUV)))) return 1;
42
42
        fac = 2. / nv;
43
43
        for ( i = 0; i < nu; ++i) {
44
44
                t = f[i];