Skip to content

Commit

Permalink
fix: Use portable format modifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Oct 15, 2024
1 parent 58ef375 commit ba12744
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/reltoaltrep.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
#define __STDC_FORMAT_MACROS

#include "rapi.hpp"
#include "typesr.hpp"
#include "reltoaltrep.hpp"
#include "cpp11/declarations.hpp"

#include <cinttypes>

using namespace duckdb;

R_altrep_class_t RelToAltrep::rownames_class;
Expand Down Expand Up @@ -99,7 +103,7 @@ struct AltrepRelationWrapper {
rel->context.GetContext()->config.max_expression_depth = old_depth * 2;
res = rel->Execute();
if (rel->context.GetContext()->config.max_expression_depth != old_depth * 2) {
Rprintf("Internal error: max_expression_depth was changed from %lu to %lu\n", old_depth * 2,
Rprintf("Internal error: max_expression_depth was changed from %" PRIu64 " to %" PRIu64 "\n", old_depth * 2,
rel->context.GetContext()->config.max_expression_depth);
}
rel->context.GetContext()->config.max_expression_depth = old_depth;
Expand Down Expand Up @@ -145,7 +149,7 @@ struct AltrepVectorWrapper {
auto res = rel->GetQueryResult();
auto error = res->GetError();
if (error != "") {
Rprintf("accessing column %ld:\n%s\n", column_index, error.c_str());
Rprintf("accessing column %" PRIu64 ":\n%s\n", column_index, error.c_str());
//rel->res = nullptr;
//res = rel->GetQueryResult();
}
Expand Down

0 comments on commit ba12744

Please sign in to comment.