[petsc-dev] clang warning, 64bit indices

Lisandro Dalcin dalcinl at gmail.com
Wed Mar 9 14:12:22 CST 2016


On 9 March 2016 at 23:00, Satish Balay <balay at mcs.anl.gov> wrote:
> On Wed, 9 Mar 2016, Lisandro Dalcin wrote:
>
>> On 9 March 2016 at 22:51, Satish Balay <balay at mcs.anl.gov> wrote:
>> > Well the following works..
>>
>> OK, but that's a small int, and you are little-endian, right? Could
>> you try the following?
>>
>> char c[] = "9223372036854775807"
>
> sbalay at ps3 ~/junk
> $ ./te.exe
> 9223372036854775807
>

Great! What would be the right #define guard for Windows builds?


-- 
Lisandro Dalcin
============
Research Scientist
Computer, Electrical and Mathematical Sciences & Engineering (CEMSE)
Extreme Computing Research Center (ECRC)
King Abdullah University of Science and Technology (KAUST)
http://ecrc.kaust.edu.sa/

4700 King Abdullah University of Science and Technology
al-Khawarizmi Bldg (Bldg 1), Office # 4332
Thuwal 23955-6900, Kingdom of Saudi Arabia
http://www.kaust.edu.sa

Office Phone: +966 12 808-0459



More information about the petsc-dev mailing list