OSDN Git Service
(root)
/
roast
/
roast.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65ce2a4
)
fixed_ptr
author
myun2
<myun2@nwhite.info>
Tue, 12 Jun 2012 08:07:58 +0000
(17:07 +0900)
committer
myun2
<myun2@nwhite.info>
Tue, 12 Jun 2012 08:07:58 +0000
(17:07 +0900)
roast/include/roast/lexical2/fixed.hpp
patch
|
blob
|
history
diff --git
a/roast/include/roast/lexical2/fixed.hpp
b/roast/include/roast/lexical2/fixed.hpp
index
4f78238
..
04b9ec3
100644
(file)
--- a/
roast/include/roast/lexical2/fixed.hpp
+++ b/
roast/include/roast/lexical2/fixed.hpp
@@
-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
;
}
//----