OSDN Git Service

fixed_ptr
authormyun2 <myun2@nwhite.info>
Tue, 12 Jun 2012 08:07:58 +0000 (17:07 +0900)
committermyun2 <myun2@nwhite.info>
Tue, 12 Jun 2012 08:07:58 +0000 (17:07 +0900)
roast/include/roast/lexical2/fixed.hpp

index 4f78238..04b9ec3 100644 (file)
@@ -59,11 +59,10 @@ namespace roast
                                const T* p = data;
                                for(unsigned int i=length; i!=0; i--, p++, it++)
                                {
-                                       bool ret = (*it == data);
-                                       if ( ret )
-                                               it++;
+                                       if ( *it != data )
+                                               return false;
                                }
-                               return ret;
+                               return true;
                        }
 
                        //----