aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorEddie Hung <e.hung@imperial.ac.uk>2018-07-08 15:48:54 -0700
committerEddie Hung <e.hung@imperial.ac.uk>2018-07-08 15:48:54 -0700
commit18c93104be19d0099d50fba364b94ead61623a8c (patch)
tree2294d42eb9bc2a8ad96d60c3f941155b7a7eb9c9 /common
parent9704ebd079fd7d8c94af97a49ef9f8f8c6ae2871 (diff)
downloadnextpnr-18c93104be19d0099d50fba364b94ead61623a8c.tar.gz
nextpnr-18c93104be19d0099d50fba364b94ead61623a8c.tar.bz2
nextpnr-18c93104be19d0099d50fba364b94ead61623a8c.zip
NPNR_ASSERT not to implicitly construct strings
Diffstat (limited to 'common')
-rw-r--r--common/nextpnr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/nextpnr.h b/common/nextpnr.h
index ec0c2f9f..37e193b9 100644
--- a/common/nextpnr.h
+++ b/common/nextpnr.h
@@ -72,7 +72,7 @@ class assertion_failure : public std::runtime_error
int line;
};
-inline void except_assert_impl(bool expr, std::string message, std::string expr_str, std::string filename, int line)
+inline void except_assert_impl(bool expr, const char *message, const char *expr_str, const char *filename, int line)
{
if (!expr)
throw assertion_failure(message, expr_str, filename, line);