~ubuntu-branches/ubuntu/gutsy/libwpd/gutsy

« back to all changes in this revision

Viewing changes to src/lib/WP1Heuristics.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Rene Engelhard
  • Date: 2007-01-11 15:15:57 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20070111151557-rn1kysabqbccx3as
Tags: 0.8.8-2
run make check for stream check; build-depend on libcppunit-dev 

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
        {
41
41
                uint8_t readVal = readU8(input);
42
42
 
43
 
                WPD_DEBUG_MSG(("WP1Heuristics, Offset 0x%.8x, value 0x%.2x\n", input->tell() - 1, readVal));
 
43
                WPD_DEBUG_MSG(("WP1Heuristics, Offset 0x%.8x, value 0x%.2x\n", (unsigned int)input->tell() - 1, readVal));
44
44
                
45
45
                if (readVal < (uint8_t)0x20)
46
46
                {
76
76
                                
77
77
                                long functionLength = readU32(input, true);
78
78
                                long closingFunctionLength = 0;
79
 
                                WPD_DEBUG_MSG(("WP1Heuristics functionLength = 0x%.8x\n", functionLength));
 
79
                                WPD_DEBUG_MSG(("WP1Heuristics functionLength = 0x%.8x\n", (unsigned int)functionLength));
80
80
 
81
81
                                input->seek(functionLength, WPX_SEEK_CUR);
82
82
                                closingFunctionLength = readU32(input, true);
83
 
                                WPD_DEBUG_MSG(("WP1Heuristics closingFunctionLength = 0x%.8x\n", closingFunctionLength));
 
83
                                WPD_DEBUG_MSG(("WP1Heuristics closingFunctionLength = 0x%.8x\n", (unsigned int)closingFunctionLength));
84
84
                                if (functionLength != closingFunctionLength)
85
85
                                        return WPD_CONFIDENCE_NONE;
86
86