mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-10 00:52:11 +01:00
Apparently you can't use add empty strings as printf() parameters.
This commit is contained in:
parent
3b4d7a723d
commit
aee3bd76c8
@ -1271,6 +1271,11 @@ std::string String::to_string() const {
|
||||
}
|
||||
|
||||
void String::print() const {
|
||||
if (_size == 0) {
|
||||
::printf("\n");
|
||||
return;
|
||||
}
|
||||
|
||||
::printf("%s\n", c_str());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user