summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiegoisawesome <Diegoisawesome@users.noreply.github.com>2018-07-29 02:19:09 -0700
committerGitHub <noreply@github.com>2018-07-29 02:19:09 -0700
commitdf4c20f1f875b41616ee55fe19162c01ffee2326 (patch)
tree5da50ee4bdec5a69f36d5d5ad70d7e1df4c73502
parent919e7b4387556ce59e2d3a3bcb2ad44fe76ee8ee (diff)
parentaeceecea3d0e3bc2d4ef183263683d3fbf2eaadc (diff)
Merge pull request #281 from einstein95/master
Port over preproc commit from pokeruby
-rw-r--r--tools/preproc/asm_file.cpp2
-rw-r--r--tools/preproc/c_file.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/preproc/asm_file.cpp b/tools/preproc/asm_file.cpp
index bb296b78b..383010aa3 100644
--- a/tools/preproc/asm_file.cpp
+++ b/tools/preproc/asm_file.cpp
@@ -266,7 +266,7 @@ int AsmFile::ReadString(unsigned char* s)
{
m_pos += stringParser.ParseString(m_pos, s, length);
}
- catch (std::runtime_error e)
+ catch (std::runtime_error& e)
{
RaiseError(e.what());
}
diff --git a/tools/preproc/c_file.cpp b/tools/preproc/c_file.cpp
index 24b3453e8..2f4bfea7c 100644
--- a/tools/preproc/c_file.cpp
+++ b/tools/preproc/c_file.cpp
@@ -206,7 +206,7 @@ void CFile::TryConvertString()
{
m_pos += stringParser.ParseString(m_pos, s, length);
}
- catch (std::runtime_error e)
+ catch (std::runtime_error& e)
{
RaiseError(e.what());
}