Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void
- G4JpegCoder::ForwardDCT(int* picData)
- {
- for( int v=0; v<8; v++ ){
- double cv = v ? 1.0 : DisSqrt2;
- for( int u=0; u<8; u++ ){
- double cu = u ? 1.0 : DisSqrt2;
- double sum = 0;
- for( int y=0; y<8; y++ )
- for( int x=0; x<8; x++ )
- sum += picData[ y * 8 + x ] *
- mCosT[u][x] * mCosT[v][y];
- mDCTData[ v * 8 + u ] = int( sum * cu * cv / 4 );
- }
- }
- }
- This suspicious code was found in Geant4 project by PVS-Studio static code analyzer.
- Warning message is:
- V640 The code's operational logic does not correspond with its formatting. The statement is indented to the right, but it is always executed. It is possible that curly brackets are missing. g4rtjpegcoder.cc 270
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement