diff options
| author | gatecat <gatecat@ds0.me> | 2021-02-25 16:16:37 +0000 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-25 16:16:37 +0000 | 
| commit | de107da5b3c66d329de0a0430a67ca843e27f3bd (patch) | |
| tree | e18884eb5006aa991402b3576e188d7977ef88e8 /common/nextpnr.h | |
| parent | ab8dfcfba4544c6733d074b24b0529d431b66d29 (diff) | |
| parent | 23413a4d12ad070c8a356c5a3186f81def705c54 (diff) | |
| download | nextpnr-de107da5b3c66d329de0a0430a67ca843e27f3bd.tar.gz nextpnr-de107da5b3c66d329de0a0430a67ca843e27f3bd.tar.bz2 nextpnr-de107da5b3c66d329de0a0430a67ca843e27f3bd.zip | |
Merge pull request #598 from YosysHQ/gatecat/compiler-flags
Tighten up compiler flags
Diffstat (limited to 'common/nextpnr.h')
| -rw-r--r-- | common/nextpnr.h | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/common/nextpnr.h b/common/nextpnr.h index 59198d6d..549e8e35 100644 --- a/common/nextpnr.h +++ b/common/nextpnr.h @@ -99,7 +99,7 @@ inline void assert_fail_impl_str(std::string message, const char *expr_str, cons  #define NPNR_ASSERT_FALSE(msg) (assert_fail_impl(msg, "false", __FILE__, __LINE__))  #define NPNR_ASSERT_FALSE_STR(msg) (assert_fail_impl_str(msg, "false", __FILE__, __LINE__)) -#define STRINGIFY(x) #x +#define NPNR_STRINGIFY(x) #x  struct BaseCtx;  struct Context; @@ -541,7 +541,7 @@ struct Property          ret.is_string = false;          ret.str.reserve(len);          for (int i = offset; i < offset + len; i++) -            ret.str.push_back(i < int(str.size()) ? str[i] : padding); +            ret.str.push_back(i < int(str.size()) ? str[i] : char(padding));          ret.update_intval();          return ret;      } @@ -1255,7 +1255,7 @@ template <typename R> struct BaseArch : ArchAPI<R>      // Default, trivial, implementations of Arch API functions for arches that don't need complex behaviours      // Basic config -    virtual IdString archId() const override { return this->id(STRINGIFY(ARCHNAME)); } +    virtual IdString archId() const override { return this->id(NPNR_STRINGIFY(ARCHNAME)); }      virtual IdString archArgsToId(typename R::ArchArgsT args) const override { return IdString(); }      virtual int getTilePipDimZ(int x, int y) const override { return 1; }      virtual char getNameDelimiter() const override { return ' '; } | 
