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
=== modified file 'src/runtime/full_text/icu_tokenizer.cpp'
--- src/runtime/full_text/icu_tokenizer.cpp 2011-10-03 09:18:49 +0000
+++ src/runtime/full_text/icu_tokenizer.cpp 2011-11-20 19:05:29 +0000
@@ -196,14 +196,14 @@
196 *c = L' ';196 *c = L' ';
197 }197 }
198198
199 // This UnicodeString wraps the existing buffer: no copy is made.199 // This unicode::string wraps the existing buffer: no copy is made.
200 UnicodeString const utf16_s( false, utf16_buf, utf16_len );200 unicode::string const utf16_s( false, utf16_buf, utf16_len );
201201
202 word_->setText( utf16_s );202 word_->setText( utf16_s );
203 int32_t word_start = word_->first(), word_end = word_->next();203 unicode::size_type word_start = word_->first(), word_end = word_->next();
204204
205 sent_->setText( utf16_s );205 sent_->setText( utf16_s );
206 int32_t sent_start = sent_->first(), sent_end = sent_->next();206 unicode::size_type sent_end = sent_->first(); sent_end = sent_->next();
207207
208 temp_token t;208 temp_token t;
209209
@@ -230,7 +230,7 @@
230 zstring_b utf8_word;230 zstring_b utf8_word;
231 utf8_word.wrap_memory( utf8_buf, utf8_len );231 utf8_word.wrap_memory( utf8_buf, utf8_len );
232232
233 int32_t const rule_status = word_->getRuleStatus();233 unicode::size_type const rule_status = word_->getRuleStatus();
234234
235 //235 //
236 // "Junk" tokens are whitespace and punctuation -- except some punctuation236 // "Junk" tokens are whitespace and punctuation -- except some punctuation
@@ -364,7 +364,7 @@
364next:364next:
365 word_start = word_end, word_end = word_->next();365 word_start = word_end, word_end = word_->next();
366 if ( word_end >= sent_end && sent_end != BreakIterator::DONE ) {366 if ( word_end >= sent_end && sent_end != BreakIterator::DONE ) {
367 sent_start = sent_end, sent_end = sent_->next();367 sent_end = sent_->next();
368 if ( sent_end != BreakIterator::DONE )368 if ( sent_end != BreakIterator::DONE )
369 ++numbers().sent;369 ++numbers().sent;
370 }370 }
371371
=== modified file 'src/runtime/full_text/thesauri/wn_synset.cpp'
--- src/runtime/full_text/thesauri/wn_synset.cpp 2011-06-24 19:58:33 +0000
+++ src/runtime/full_text/thesauri/wn_synset.cpp 2011-11-20 19:05:29 +0000
@@ -84,9 +84,11 @@
84}84}
8585
86synset::mem_ptr_type* synset::skip_lemmas( size_type n, mem_ptr_type *pptr ) {86synset::mem_ptr_type* synset::skip_lemmas( size_type n, mem_ptr_type *pptr ) {
87 unsigned char const *&u = *reinterpret_cast<unsigned char const**>( pptr );87 //
88 // This custom code is faster than using decode_base128() here.
89 //
88 while ( n-- > 0 )90 while ( n-- > 0 )
89 while ( *u++ & 0x80 ) // faster than decode_base128()91 while ( static_cast<unsigned char>( *(*pptr)++ ) & 0x80 )
90 ;92 ;
91 return pptr;93 return pptr;
92}94}
9395
=== modified file 'src/util/unicode_util.h'
--- src/util/unicode_util.h 2011-07-18 14:25:21 +0000
+++ src/util/unicode_util.h 2011-11-20 19:05:29 +0000
@@ -45,6 +45,10 @@
45 */45 */
46typedef UChar32 code_point;46typedef UChar32 code_point;
4747
48/**
49 * The type that represents the size of a string. Do not assume that this is
50 * an unsigned type.
51 */
48typedef int32_t size_type;52typedef int32_t size_type;
4953
50/**54/**

Subscribers

People subscribed via source and target branches