mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-06-20 17:17:13 +02:00
Backport MaxmindDB.
This commit is contained in:
CMakeLists.txt
module
vendor
CMakeLists.txt
MaxmindDB
AUTHORSCMakeLists.txtChanges.mdLICENSEMakefile.amNOTICEREADME.dev.mdREADME.md
bin
bootstrapcommon.mkconfigure.acdev-bin
doc
include
projects
VS12-tests
bad_pointers.vcxprojbasic_lookup.vcxprojdata_entry_list.vcxprojdata_types.vcxprojdump.vcxprojget_value.vcxprojget_value_pointer_bug.vcxprojipv4_start_cache.vcxprojipv6_lookup_in_ipv4.vcxprojlibtap.vcxprojmaxminddb_test_helper.vcxprojmetadata.vcxprojmetadata_pointers.vcxprojno_map_get_value.vcxprojread_node.vcxprojshared.vcxprojthreads.vcxprojversion.vcxproj
VS12
README.mdlibmaxminddb-release.propslibmaxminddb-x64.propslibmaxminddb.propslibmaxminddb.slnlibmaxminddb.vcxprojlibmaxminddb.vcxproj.filtersmaxminddb_config.h
test.vcxproj.templatesrc
t
CMakeLists.txtMakefile.ambad_databases_t.cbad_pointers_t.cbasic_lookup_t.ccompile_c++_t.pldata-pool-t.cdata_entry_list_t.cdata_types_t.cdump_t.cexternal_symbols_t.plget_value_pointer_bug_t.cget_value_t.cipv4_start_cache_t.cipv6_lookup_in_ipv4_t.cmaxminddb_test_helper.cmaxminddb_test_helper.hmetadata_pointers_t.cmetadata_t.cmmdblookup_t.plno_map_get_value_t.cread_node_t.cthreads_t.cversion_t.c
1611
module/Library/MMDB.cpp
Normal file
1611
module/Library/MMDB.cpp
Normal file
File diff suppressed because it is too large
Load Diff
1728
module/Library/MMDB.hpp
Normal file
1728
module/Library/MMDB.hpp
Normal file
File diff suppressed because it is too large
Load Diff
@ -222,7 +222,7 @@ template < class T > struct SqVector
|
||||
{
|
||||
if (static_cast< size_t >(i) >= mC->size())
|
||||
{
|
||||
STHROWF("Invalid vector container index(" PRINT_INT_FMT ")", i);
|
||||
STHROWF("Invalid vector container index(%d" PRINT_INT_FMT ")", i);
|
||||
}
|
||||
return *mC;
|
||||
}
|
||||
@ -234,7 +234,7 @@ template < class T > struct SqVector
|
||||
{
|
||||
if (static_cast< size_t >(i) >= mC->size())
|
||||
{
|
||||
STHROWF("Invalid vector container index(" PRINT_INT_FMT ")", i);
|
||||
STHROWF("Invalid vector container index(%d" PRINT_INT_FMT ")", i);
|
||||
}
|
||||
return *mC;
|
||||
}
|
||||
@ -623,7 +623,7 @@ template < class T > struct SqVector
|
||||
Validate();
|
||||
if (static_cast< size_t >(p) >= mC->size())
|
||||
{
|
||||
STHROWF("Invalid container index (" PRINT_INT_FMT ")", p);
|
||||
STHROWF("Invalid container index (%d" PRINT_INT_FMT ")", p);
|
||||
}
|
||||
for (auto i = static_cast< size_t >(p); n--; ++i)
|
||||
{
|
||||
@ -646,7 +646,7 @@ template < class T > struct SqVector
|
||||
}
|
||||
else if (static_cast< size_t >(p + n) >= mC->size())
|
||||
{
|
||||
STHROWF("Invalid container index (" PRINT_INT_FMT ")", p + n);
|
||||
STHROWF("Invalid container index (%d" PRINT_INT_FMT ")", p + n);
|
||||
}
|
||||
for (n = (p + n); p <= n; ++p)
|
||||
{
|
||||
|
Reference in New Issue
Block a user