[ox/mc] Replace int errors with Error

This commit is contained in:
2019-03-04 21:16:30 -06:00
parent d51acfd033
commit 40dac704d0
3 changed files with 11 additions and 10 deletions

View File

@@ -103,7 +103,7 @@ Error MetalClawWriter::op(const char*, ox::Vector<T> *val) {
template<typename I>
Error MetalClawWriter::appendInteger(I val) {
int err = 0;
Error err = 0;
bool fieldSet = false;
if (val) {
if (m_buffIt + sizeof(I) < m_buffLen) {
@@ -121,7 +121,7 @@ Error MetalClawWriter::appendInteger(I val) {
template<typename T>
Error MetalClawWriter::op(const char*, T *val, std::size_t len) {
int err = 0;
Error err = 0;
bool fieldSet = false;
if (len) {