Fix printing

release/4.3a0
Frank Dellaert 2023-02-05 10:43:28 -08:00
parent d7dfd69f90
commit 64f6384177
2 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ void LabeledSymbol::print(const std::string& s) const {
/* ************************************************************************* */
LabeledSymbol::operator std::string() const {
char buffer[100];
snprintf(buffer, 100, "%c%c%llu", c_, label_, j_);
snprintf(buffer, 100, "%c%c%lu", c_, label_, j_);
return std::string(buffer);
}

View File

@ -57,7 +57,7 @@ bool Symbol::equals(const Symbol& expected, double tol) const {
Symbol::operator std::string() const {
char buffer[10];
snprintf(buffer, 10, "%c%llu", c_, j_);
snprintf(buffer, 10, "%c%lu", c_, j_);
return std::string(buffer);
}