Changeset 19000 for trunk/Mars/mcorsika


Ignore:
Timestamp:
04/27/18 20:06:28 (7 years ago)
Author:
tbretz
Message:
Use a reinterpret_cast to avoid compiler warnings with clang.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mcorsika/MCorsikaRead.cc

    r18543 r19000  
    538538                    char *ptr = buf;
    539539
    540                     unsigned int n = ((int*)ptr)[0];
     540                    unsigned int n = reinterpret_cast<unsigned int*>(ptr)[0];
    541541                    ptr += 4;
    542542
     
    545545                    for (unsigned int i=0; i<n && ptr<buf+fBlockLength; i++)
    546546                    {
    547                         unsigned short s = ((unsigned short*)ptr)[0];
     547                        unsigned short s = reinterpret_cast<unsigned short*>(ptr)[0];
    548548                        ptr += 2;
    549549
Note: See TracChangeset for help on using the changeset viewer.