Ticket #3148: msvc8-aiff-patch.patch

File msvc8-aiff-patch.patch, 647 bytes (added by bluegr, 14 years ago)

Fixes to aiff.cpp, to prevent some remaining warnings from MSVC8

  • aiff.cpp

     
    4646
    4747        byte buf[10];
    4848        uint32 mantissa;
    49         uint32 last;
     49        uint32 last = 0;
    5050        byte exp;
    5151
    5252        stream.read(buf, 10);
     
    8989        bool foundCOMM = false;
    9090        bool foundSSND = false;
    9191
    92         uint16 numChannels, bitsPerSample;
    93         uint32 numSampleFrames, offset, blockSize, soundOffset;
     92        uint16 numChannels = 0, bitsPerSample = 0;
     93        uint32 numSampleFrames = 0, offset = 0, blockSize = 0, soundOffset = 0;
    9494
    9595        while ((!foundCOMM || !foundSSND) && !stream.ioFailed()) {
    9696                uint32 length, pos;