[mozc] more fixes

Akira TAGOH tagoh at fedoraproject.org
Mon May 23 06:02:37 UTC 2011


commit e2c4cdcdb78246a6a6c03679baa400c58af6d966
Author: Akira TAGOH <tagoh at redhat.com>
Date:   Mon May 23 15:02:25 2011 +0900

    more fixes

 mozc-fix-sign-compare.patch |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)
---
diff --git a/mozc-fix-sign-compare.patch b/mozc-fix-sign-compare.patch
index 91b7f1e..5fd4b09 100644
--- a/mozc-fix-sign-compare.patch
+++ b/mozc-fix-sign-compare.patch
@@ -49,3 +49,24 @@ diff -pruN mozc-1.1.717.102.orig/storage/lru_storage.cc mozc-1.1.717.102/storage
        sizeof(value_size_) + sizeof(size_) + sizeof(seed_);
    if (offset >= mmap_->GetFileSize()) {   // should not happen
      return;
+diff -pruN mozc-1.1.717.102.orig/storage/sparse_array_image.cc mozc-1.1.717.102/storage/sparse_array_image.cc
+--- mozc-1.1.717.102.orig/storage/sparse_array_image.cc	2011-05-20 17:17:04.000000000 +0900
++++ mozc-1.1.717.102/storage/sparse_array_image.cc	2011-05-23 15:01:54.000000000 +0900
+@@ -45,7 +45,7 @@ struct BitTreeNode {
+ };
+ 
+ BitTreeNode::~BitTreeNode() {
+-  for (int i = 0; i < children.size(); ++i) {
++  for (size_t i = 0; i < children.size(); ++i) {
+     delete children[i];
+   }
+ }
+@@ -335,7 +335,7 @@ SparseArrayImage::SparseArrayImage(const
+ }
+ 
+ SparseArrayImage::~SparseArrayImage() {
+-  for (int i = 0; i < arrays_.size(); ++i) {
++  for (size_t i = 0; i < arrays_.size(); ++i) {
+     delete arrays_[i];
+   }
+ }


More information about the scm-commits mailing list