Permalink
Browse files

+ use member variable in ctor

  • Loading branch information...
1 parent 994f9ab commit c0ecb7e980e1f7cf0cabd46614126ca615ff9cdd @artemp artemp committed Jul 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/wkb.cpp
View
@@ -76,7 +76,7 @@ struct wkb_reader : boost::noncopyable
// try to determine WKB format automatically
if (format_ == wkbAuto)
{
- if (size >= 44
+ if (size_ >= 44
&& (unsigned char)(wkb_[0]) == (unsigned char)(0x00)
&& (unsigned char)(wkb_[38]) == (unsigned char)(0x7C))
{

0 comments on commit c0ecb7e

Please sign in to comment.