Merge lp:~paul-lucas/zorba/bug-892532 into lp:zorba

Proposed by Paul J. Lucas
Status: Merged
Approved by: Chris Hillery
Approved revision: 10551
Merged at revision: 10552
Proposed branch: lp:~paul-lucas/zorba/bug-892532
Merge into: lp:zorba
Diff against target: 73 lines (+14/-8)
3 files modified
src/runtime/full_text/icu_tokenizer.cpp (+6/-6)
src/runtime/full_text/thesauri/wn_synset.cpp (+4/-2)
src/util/unicode_util.h (+4/-0)
To merge this branch: bzr merge lp:~paul-lucas/zorba/bug-892532
Reviewer Review Type Date Requested Status
Matthias Brantner Approve
Paul J. Lucas Approve
Review via email: mp+82828@code.launchpad.net

Commit message

Removed warnings.

Description of the change

Removed warnings.

To post a comment you must log in.
Revision history for this message
Paul J. Lucas (paul-lucas) :
review: Approve
Revision history for this message
Matthias Brantner (matthias-brantner) :
review: Approve
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

The attempt to merge lp:~paul-lucas/zorba/bug-892532 into lp:zorba failed. Below is the output from the failed tests.

CMake Error at /home/ceej/zo/testing/zorbatest/tester/TarmacLander.cmake:272 (message):
  Validation queue job bug-892532-2011-11-21T21-53-21.071Z is finished. The
  final status was:

  3 tests did not succeed - changes not commited.

Error in read script: /home/ceej/zo/testing/zorbatest/tester/TarmacLander.cmake

Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

The attempt to merge lp:~paul-lucas/zorba/bug-892532 into lp:zorba failed. Below is the output from the failed tests.

CMake Error at /home/ceej/zo/testing/zorbatest/tester/TarmacLander.cmake:272 (message):
  Validation queue job bug-892532-2011-11-22T03-53-59.929Z is finished. The
  final status was:

  No tests were run - build or configure step must have failed.

  Not commiting changes.

Error in read script: /home/ceej/zo/testing/zorbatest/tester/TarmacLander.cmake

Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue job bug-892532-2011-11-22T04-33-02.944Z is finished. The final status was:

All tests succeeded!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/runtime/full_text/icu_tokenizer.cpp'
2--- src/runtime/full_text/icu_tokenizer.cpp 2011-10-03 09:18:49 +0000
3+++ src/runtime/full_text/icu_tokenizer.cpp 2011-11-20 19:05:29 +0000
4@@ -196,14 +196,14 @@
5 *c = L' ';
6 }
7
8- // This UnicodeString wraps the existing buffer: no copy is made.
9- UnicodeString const utf16_s( false, utf16_buf, utf16_len );
10+ // This unicode::string wraps the existing buffer: no copy is made.
11+ unicode::string const utf16_s( false, utf16_buf, utf16_len );
12
13 word_->setText( utf16_s );
14- int32_t word_start = word_->first(), word_end = word_->next();
15+ unicode::size_type word_start = word_->first(), word_end = word_->next();
16
17 sent_->setText( utf16_s );
18- int32_t sent_start = sent_->first(), sent_end = sent_->next();
19+ unicode::size_type sent_end = sent_->first(); sent_end = sent_->next();
20
21 temp_token t;
22
23@@ -230,7 +230,7 @@
24 zstring_b utf8_word;
25 utf8_word.wrap_memory( utf8_buf, utf8_len );
26
27- int32_t const rule_status = word_->getRuleStatus();
28+ unicode::size_type const rule_status = word_->getRuleStatus();
29
30 //
31 // "Junk" tokens are whitespace and punctuation -- except some punctuation
32@@ -364,7 +364,7 @@
33 next:
34 word_start = word_end, word_end = word_->next();
35 if ( word_end >= sent_end && sent_end != BreakIterator::DONE ) {
36- sent_start = sent_end, sent_end = sent_->next();
37+ sent_end = sent_->next();
38 if ( sent_end != BreakIterator::DONE )
39 ++numbers().sent;
40 }
41
42=== modified file 'src/runtime/full_text/thesauri/wn_synset.cpp'
43--- src/runtime/full_text/thesauri/wn_synset.cpp 2011-06-24 19:58:33 +0000
44+++ src/runtime/full_text/thesauri/wn_synset.cpp 2011-11-20 19:05:29 +0000
45@@ -84,9 +84,11 @@
46 }
47
48 synset::mem_ptr_type* synset::skip_lemmas( size_type n, mem_ptr_type *pptr ) {
49- unsigned char const *&u = *reinterpret_cast<unsigned char const**>( pptr );
50+ //
51+ // This custom code is faster than using decode_base128() here.
52+ //
53 while ( n-- > 0 )
54- while ( *u++ & 0x80 ) // faster than decode_base128()
55+ while ( static_cast<unsigned char>( *(*pptr)++ ) & 0x80 )
56 ;
57 return pptr;
58 }
59
60=== modified file 'src/util/unicode_util.h'
61--- src/util/unicode_util.h 2011-07-18 14:25:21 +0000
62+++ src/util/unicode_util.h 2011-11-20 19:05:29 +0000
63@@ -45,6 +45,10 @@
64 */
65 typedef UChar32 code_point;
66
67+/**
68+ * The type that represents the size of a string. Do not assume that this is
69+ * an unsigned type.
70+ */
71 typedef int32_t size_type;
72
73 /**

Subscribers

People subscribed via source and target branches