<div class="gmail_quote">On Sat, Sep 22, 2012 at 3:40 PM, Matthew Knepley <span dir="ltr"><<a href="mailto:knepley@gmail.com" target="_blank">knepley@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="gmail_quote"><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><div>Well, you wrote</div><div><br></div><div> PetscInt imid = ((unsigned PetscInt) imin + (unsigned PetscInt) imax) >> 1;</div>
<div><br></div><div>which doesn't compile because the unsigned keyword does not apply to typedefs.</div>
</div></blockquote><div><br></div></div><div>Compiled fine for me.</div></div></blockquote><div><br></div><div>Bull. Shit.</div><div><br></div><div>/home/jed/petsc-tmp/src/sys/utils/sorti.c: In function ‘PetscFindInt’:</div>
<div>/home/jed/petsc-tmp/src/sys/utils/sorti.c:162:32: error: expected ‘)’ before ‘PetscInt’</div><div>/home/jed/petsc-tmp/src/sys/utils/sorti.c:162:59: error: expected ‘)’ before ‘PetscInt’</div><div><br></div></div>