Skip to content

Commit bfcfb79

Browse files
committed
Fixed incorrect return type for getInt64 functions
Fixed the incorrect return type for the two getInt64 functions that was caused by too hasty copy-and-paste.
1 parent a80f905 commit bfcfb79

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

CppSQLite3.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ int CppSQLite3Query::getIntField(const char* szField, int nNullValue/*=0*/)
377377
}
378378

379379

380-
int CppSQLite3Query::getInt64Field(int nField, long long nNullValue/*=0*/)
380+
long long CppSQLite3Query::getInt64Field(int nField, long long nNullValue/*=0*/)
381381
{
382382
if (fieldDataType(nField) == SQLITE_NULL)
383383
{
@@ -390,7 +390,7 @@ int CppSQLite3Query::getInt64Field(int nField, long long nNullValue/*=0*/)
390390
}
391391

392392

393-
int CppSQLite3Query::getInt64Field(const char* szField, long long nNullValue/*=0*/)
393+
long long CppSQLite3Query::getInt64Field(const char* szField, long long nNullValue/*=0*/)
394394
{
395395
int nField = fieldIndex(szField);
396396
return getIntField(nField, nNullValue);

CppSQLite3.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ class CppSQLite3Query
120120
int getIntField(int nField, int nNullValue=0);
121121
int getIntField(const char* szField, int nNullValue=0);
122122

123-
int getInt64Field(int nField, long long nNullValue=0);
124-
int getInt64Field(const char* szField, long long nNullValue=0);
123+
long long getInt64Field(int nField, long long nNullValue=0);
124+
long long getInt64Field(const char* szField, long long nNullValue=0);
125125

126126
double getFloatField(int nField, double fNullValue=0.0);
127127
double getFloatField(const char* szField, double fNullValue=0.0);

0 commit comments

Comments
 (0)