commit | 1efe14b2a1893633ce5b92f7260c17cfb249dc97 | [log] [tgz] |
---|---|---|
author | MITSUNARI Shigeo <herumi@nifty.com> | Sat Sep 19 18:16:36 2020 +0900 |
committer | MITSUNARI Shigeo <herumi@nifty.com> | Sat Sep 19 18:16:42 2020 +0900 |
tree | 674a7f999a7f4ad85a95c2a023fc8dc124a559d4 | |
parent | 83c89c7aeac75916fbdf42be5cdf79b71b914534 [diff] |
change the original behavior of SetError
diff --git a/xbyak/xbyak.h b/xbyak/xbyak.h index 89553cb..4310455 100644 --- a/xbyak/xbyak.h +++ b/xbyak/xbyak.h
@@ -273,7 +273,7 @@ } inline void SetError(int err) { - if (!err) return; // keep the first err code + if (local::GetErrorRef()) return; // keep the first err code local::GetErrorRef() = err; }