[glibmm/gmmproc-refactor] Make more thorough check in identity conversions.



commit 7d4857554b2335f2cc773fc65fc126c545a9d689
Author: Krzesimir Nowak <qdlacz gmail com>
Date:   Sun Jul 22 17:18:24 2012 +0200

    Make more thorough check in identity conversions.

 tools/pm/Common/TypeDetails/Base.pm |    5 +++--
 tools/pm/Common/TypeInfo/Local.pm   |    2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/tools/pm/Common/TypeDetails/Base.pm b/tools/pm/Common/TypeDetails/Base.pm
index eb80db6..fde6acd 100644
--- a/tools/pm/Common/TypeDetails/Base.pm
+++ b/tools/pm/Common/TypeDetails/Base.pm
@@ -27,9 +27,10 @@ use constant
 {
   NONE => 0,
   BASE => 1 << 0,
-  ACCESS_MODIFIERS => (1 << 1),
+  ACCESS_MODIFIERS => 1 << 1,
   STRUCTURE => 1 << 2,
-  RECURSIVE => 1 << 2 | 1 << 3 # recursive check forces structure equality
+  RECURSIVE => 1 << 2 | 1 << 3, # recursive check forces structure equality
+  COMPLETE => 1 << 0 | 1 << 1 | 1 << 2 | 1 << 3
 };
 
 sub _get_split_values ($)
diff --git a/tools/pm/Common/TypeInfo/Local.pm b/tools/pm/Common/TypeInfo/Local.pm
index 08bba11..cd4e7fd 100644
--- a/tools/pm/Common/TypeInfo/Local.pm
+++ b/tools/pm/Common/TypeInfo/Local.pm
@@ -98,7 +98,7 @@ sub _get_identity_conversion
   my $from_details = Common::TypeDetails::disassemble_type ($from);
   my $to_details = Common::TypeDetails::disassemble_type ($to);
 
-  if ($from_details->equal ($to_details, Common::TypeDetails::Base::RECURSIVE))
+  if ($from_details->equal ($to_details, Common::TypeDetails::Base::COMPLETE))
   {
     return $subst;
   }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]