fix setSize
diff --git a/readme.md b/readme.md
index 852afd0..bc6d6d9 100644
--- a/readme.md
+++ b/readme.md
@@ -1,5 +1,5 @@
 
-Xbyak 4.80 ; JIT assembler for x86(IA32), x64(AMD64, x86-64) by C++
+Xbyak 4.81 ; JIT assembler for x86(IA32), x64(AMD64, x86-64) by C++
 =============
 
 Abstract
@@ -277,6 +277,7 @@
 
 History
 -------------
+* 2015/Apr/25 ver 4.81 fix the condition to throw exception for setSize(thanks to whyisthisfieldhere)
 * 2015/Apr/22 ver 4.80 rip supports label(thanks to whyisthisfieldhere)
 * 2015/Jar/28 ver 4.71 support adcx, adox, cmpxchg, rdseed, stac
 * 2014/Oct/14 ver 4.70 support MmapAllocator
diff --git a/readme.txt b/readme.txt
index 59ad553..33ca1b8 100644
--- a/readme.txt
+++ b/readme.txt
@@ -1,5 +1,5 @@
 

-    C++用x86(IA-32), x64(AMD64, x86-64) JITアセンブラ Xbyak 4.80

+    C++用x86(IA-32), x64(AMD64, x86-64) JITアセンブラ Xbyak 4.81

 

 -----------------------------------------------------------------------------

 ◎概要

@@ -296,6 +296,7 @@
 -----------------------------------------------------------------------------

 ◎履歴

 

+2015/04/25 ver 4.81 setSizeが例外を投げる条件を修正(thanks to whyisthisfieldhere)

 2015/04/22 ver 4.80 rip相対でLabelのサポート(thanks to whyisthisfieldhere)

 2015/01/28 ver 4.71 adcx, adox, cmpxchg, rdseed, stacのサポート

 2014/10/14 ver 4.70 MmapAllocatorのサポート

diff --git a/xbyak/xbyak.h b/xbyak/xbyak.h
index ada3f63..f81138c 100644
--- a/xbyak/xbyak.h
+++ b/xbyak/xbyak.h
@@ -96,7 +96,7 @@
 
 enum {
 	DEFAULT_MAX_CODE_SIZE = 4096,
-	VERSION = 0x4800 /* 0xABCD = A.BC(D) */
+	VERSION = 0x4810 /* 0xABCD = A.BC(D) */
 };
 
 #ifndef MIE_INTEGER_TYPE_DEFINED
@@ -739,7 +739,7 @@
 	size_t getSize() const { return size_; }
 	void setSize(size_t size)
 	{
-		if (size >= maxSize_) throw Error(ERR_OFFSET_IS_TOO_BIG);
+		if (size > maxSize_) throw Error(ERR_OFFSET_IS_TOO_BIG);
 		size_ = size;
 	}
 	void dump() const
diff --git a/xbyak/xbyak_mnemonic.h b/xbyak/xbyak_mnemonic.h
index 5e0beae..2005ad0 100644
--- a/xbyak/xbyak_mnemonic.h
+++ b/xbyak/xbyak_mnemonic.h
@@ -1,4 +1,4 @@
-const char *getVersionString() const { return "4.80"; }
+const char *getVersionString() const { return "4.81"; }
 void packssdw(const Mmx& mmx, const Operand& op) { opMMX(mmx, op, 0x6B); }
 void packsswb(const Mmx& mmx, const Operand& op) { opMMX(mmx, op, 0x63); }
 void packuswb(const Mmx& mmx, const Operand& op) { opMMX(mmx, op, 0x67); }