[petsc-dev] PetscFindInt
Jed Brown
jedbrown at mcs.anl.gov
Sat Sep 22 15:46:41 CDT 2012
On Sat, Sep 22, 2012 at 3:40 PM, Matthew Knepley <knepley at gmail.com> wrote:
> Well, you wrote
>>
>> PetscInt imid = ((unsigned PetscInt) imin + (unsigned PetscInt) imax)
>> >> 1;
>>
>> which doesn't compile because the unsigned keyword does not apply to
>> typedefs.
>>
>
> Compiled fine for me.
>
Bull. Shit.
/home/jed/petsc-tmp/src/sys/utils/sorti.c: In function ‘PetscFindInt’:
/home/jed/petsc-tmp/src/sys/utils/sorti.c:162:32: error: expected ‘)’
before ‘PetscInt’
/home/jed/petsc-tmp/src/sys/utils/sorti.c:162:59: error: expected ‘)’
before ‘PetscInt’
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20120922/d027606b/attachment.html>
More information about the petsc-dev
mailing list