code cleanup: also fix crash in GPU_state_print(). and confine to debug mode builds.
This commit is contained in:
@@ -311,7 +311,7 @@ std::string bc_replace_string(std::string data, const std::string& pattern,
|
||||
const std::string& replacement)
|
||||
{
|
||||
size_t pos = 0;
|
||||
while((pos = data.find(pattern, pos)) != std::string::npos) {
|
||||
while ((pos = data.find(pattern, pos)) != std::string::npos) {
|
||||
data.replace(pos, pattern.length(), replacement);
|
||||
pos += replacement.length();
|
||||
}
|
||||
|
Reference in New Issue
Block a user