Merge pull request #256 from emaste/master

icetime: avoid string + int Clang warning
This commit is contained in:
Claire Wolf 2020-06-25 18:24:09 +02:00 committed by GitHub
commit ef4489835c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ std::string find_chipdb(std::string config_device)
#else
homepath += getenv("HOME");
#endif
homepath += std::string(PREFIX + 1) + "/" CHIPDB_SUBDIR "/chipdb-" + config_device + ".txt";
homepath += std::string(&PREFIX[1]) + "/" CHIPDB_SUBDIR "/chipdb-" + config_device + ".txt";
if (verbose)
fprintf(stderr, "Looking for chipdb '%s' at %s\n", config_device.c_str(), homepath.c_str());
if (file_test_open(homepath))