mirror of
https://github.com/cuberite/SQLiteCpp.git
synced 2025-08-05 10:16:01 -04:00
use int64_t instead of long long(unit tests)
using long long may be ambigous for the compiler in the call of bind() using a fixed type(int64_t) solves this issue this issue was replicated on both Arch Linux&Windows with clang 13.0.1/14.0.1
This commit is contained in:
parent
9158225e5d
commit
6b6078ab3f
@ -12,6 +12,7 @@
|
||||
#include <SQLiteCpp/Database.h>
|
||||
#include <SQLiteCpp/Statement.h>
|
||||
|
||||
#include <cstdint> // for int64_t
|
||||
#include <sqlite3.h> // for SQLITE_DONE
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
@ -327,7 +328,7 @@ TEST(Statement, bindings)
|
||||
// Fourth row with string/int64/float
|
||||
{
|
||||
const std::string fourth("fourth");
|
||||
const long long int64 = 12345678900000LL;
|
||||
const int64_t int64 = 12345678900000LL;
|
||||
const float float32 = 0.234f;
|
||||
insert.bind(1, fourth);
|
||||
insert.bind(2, int64);
|
||||
@ -491,7 +492,7 @@ TEST(Statement, bindByName)
|
||||
// Second row with string/int64/float
|
||||
{
|
||||
const std::string second("second");
|
||||
const long long int64 = 12345678900000LL;
|
||||
const int64_t int64 = 12345678900000LL;
|
||||
const long integer = -123;
|
||||
const float float32 = 0.234f;
|
||||
insert.bind("@msg", second);
|
||||
@ -604,7 +605,7 @@ TEST(Statement, bindByNameString)
|
||||
// Second row with string/int64/float
|
||||
{
|
||||
const std::string second("second");
|
||||
const long long int64 = 12345678900000LL;
|
||||
const int64_t int64 = 12345678900000LL;
|
||||
const long integer = -123;
|
||||
const float float32 = 0.234f;
|
||||
insert.bind(amsg, second);
|
||||
|
Loading…
x
Reference in New Issue
Block a user