From c6f568916ce3d37fdbfa36e05cb3e6adc1fd6666 Mon Sep 17 00:00:00 2001 From: tcezard Date: Thu, 27 Jun 2024 14:37:49 +0100 Subject: [PATCH] Revert long unsigned int to ::size_t --- inc/vcf/error-odb.hpp | 2 +- src/vcf/error-odb.cpp | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/inc/vcf/error-odb.hpp b/inc/vcf/error-odb.hpp index b2737bf3f..b8da5bb1a 100644 --- a/inc/vcf/error-odb.hpp +++ b/inc/vcf/error-odb.hpp @@ -1052,7 +1052,7 @@ namespace odb typedef sqlite::query_column< sqlite::value_traits< - long unsigned int, + ::size_t, sqlite::id_integer >::query_type, sqlite::id_integer > line_type_; diff --git a/src/vcf/error-odb.cpp b/src/vcf/error-odb.cpp index 4205e1872..2fa433732 100644 --- a/src/vcf/error-odb.cpp +++ b/src/vcf/error-odb.cpp @@ -261,12 +261,12 @@ namespace odb // if (sk == statement_insert) { - long unsigned int const& v = + ::size_t const& v = o.line; bool is_null (false); sqlite::value_traits< - long unsigned int, + ::size_t, sqlite::id_integer >::set_image ( i.line_value, is_null, @@ -381,12 +381,12 @@ namespace odb // line // { - long unsigned int& v = - const_cast< long unsigned int& > ( + ::size_t& v = + const_cast< ::size_t& > ( o.line); sqlite::value_traits< - long unsigned int, + ::size_t, sqlite::id_integer >::set_value ( v, i.line_value,