codesearch.isocpp.org by Andrew Tomazos.

Enter a valid C/C++ code snippet...

Searching for `static_cast<size_t>`...

2489599 source files searched.

27515 matches found.

Here is a random sample of matches...


actcd19/main/q/qtox/qtox_1.16.3-2/src/core/toxencrypt.cpp:103:

                         static_cast<size_t>(plaintext.size()),
reinterpret_cast<const uint8_t*>(pass.constData()),
static_cast<size_t>(pass.size()),
reinterpret_cast<uint8_t*>(ciphertext.data()), &error);


actcd19/main/c/chromium/chromium_72.0.3626.121-1/third_party/pdfium/fpdfsdk/fpdf_structtree.cpp:68:

      }
return FPDFStructElementFromCPDFStructElement(
tree->GetTopElement(static_cast<size_t>(index)));
}


actcd19/main/c/clfft/clfft_2.12.2-1/src/tests/cl_transform.h:177:

    					_placeness
)
, output( static_cast<size_t>(dimensions_in),
lengths_in,
output_strides_in,


actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/components/sync_sessions/favicon_cache_unittest.cc:882:

      syncer::SyncChangeList changes = processor()->GetAndResetChangeList();
ASSERT_TRUE(VerifyLocalIcons(expected_icons));
ASSERT_EQ(static_cast<size_t>(kFaviconBatchSize), changes.size());
ASSERT_TRUE(VerifyChanges(syncer::FAVICON_IMAGES,
expected_change_types,


actcd19/main/e/ecflow/ecflow_4.13.0-1/Server/src/CheckPtSaver.cpp:151:

             /// If Save take longer than checkpt_save_time_alarm, then set a flag on server
/// So that user can be aware of it.
if (static_cast<size_t>(durationTimer.duration()) > server_->serverEnv_.checkpt_save_time_alarm() ) {
server_->defs_->flag().set(ecf::Flag::LATE);
std::stringstream ss;


actcd19/main/q/qt3d-opensource-src/qt3d-opensource-src_5.11.3+dfsg-2/src/3rdparty/assimp/code/glTF2Asset.h:360:

            inline static unsigned int GetNumComponents(Value type)
{
return data<0>::infos[static_cast<size_t>(type)].numComponents;
}
};


actcd19/main/a/ace/ace_6.4.5+dfsg-1/tests/MT_Reactor_Timer_Test.cpp:295:

        // Schedule a timeout to expire immediately.
if (r->schedule_timer (&callback,
reinterpret_cast <const void *> (static_cast <size_t> (i)),
ACE_Time_Value (0)) == -1)
ACE_ERROR_RETURN ((LM_ERROR,


actcd19/main/c/chromium/chromium_72.0.3626.121-1/third_party/pdfium/core/fxcodec/jbig2/JBig2_HuffmanTable.cpp:187:

        if ((pStream->readNBits(HTPS, &CODES[NTEMP].codelen) == -1) ||
(pStream->readNBits(HTRS, &RANGELEN[NTEMP]) == -1) ||
(static_cast<size_t>(RANGELEN[NTEMP]) >= 8 * sizeof(cur_low))) {
return false;
}


actcd19/main/c/chromium/chromium_72.0.3626.121-1/chrome/browser/ui/views/certificate_selector.cc:259:

        return false;

DCHECK_LT(static_cast<size_t>(selected), identities_.size());
AcceptCertificate(std::move(identities_[selected]));
return true;


actcd19/main/o/openjdk-11-jre-dcevm/openjdk-11-jre-dcevm_11.0.1+8-1/src/hotspot/share/gc/shared/referenceProcessor.cpp:1362:

      size_t thread_count = 1 + (ref_count / ReferencesPerThread);
return (uint)MIN3(thread_count,
static_cast<size_t>(max_threads),
(size_t)os::active_processor_count());
}


actcd19/main/m/mrpt/mrpt_1.5.6-1/libs/opengl/src/CMesh.cpp:328:

    	MRPT_START

ASSERT_((img.getWidth() == static_cast<size_t>(in_Z.cols()))&&(img.getHeight() == static_cast<size_t>(in_Z.rows())))

Z = in_Z;


actcd19/main/t/trilinos/trilinos_12.12.1-7/packages/intrepid/src/Cell/Intrepid_CellToolsDef.hpp:2818:

                            ">>> ERROR (Intrepid::CellTools::validateArguments_setJacobian): dim 1 (number of points) of jacobian array must equal dim 1 of points array");

TEUCHOS_TEST_FOR_EXCEPTION( (static_cast<size_t>(jacobian.dimension(2)) != static_cast<size_t>(points.dimension(2))), std::invalid_argument,
">>> ERROR (Intrepid::CellTools::validateArguments_setJacobian): dim 2 (spatial dimension) of jacobian array must equal dim 2 of points array");


actcd19/main/q/qtbase-opensource-src/qtbase-opensource-src_5.10.1+dfsg-5/.pc/mesa_18.diff/src/gui/opengl/qopenglprogrambinarycache.cpp:193:

                return false;
}
mapSize = static_cast<size_t>(offs);
ptr = mmap(nullptr, mapSize, PROT_READ, MAP_SHARED, fd, 0);
return ptr != MAP_FAILED;


actcd19/main/g/galera-3/galera-3_25.3.25-1/galera/src/replicator_smm_stats.cpp:328:

            sv[sv_pos].value._string = 0;

assert(static_cast<size_t>(tail_buf - reinterpret_cast<const char*>(buf)) == vec_size + tail_size);
assert(reinterpret_cast<const char*>(buf)[vec_size + tail_size - 1] == '\0');
// Finally copy sv vector to buf


actcd19/main/s/slic3r/slic3r_1.3.0+dfsg1-3/xs/src/tiny_obj_loader.h:1675:

          }

tag.floatValues.resize(static_cast<size_t>(ts.num_floats));
for (size_t i = 0; i < static_cast<size_t>(ts.num_floats); ++i) {
tag.floatValues[i] = parseFloat(&token);


actcd19/main/q/qtwebkit-opensource-src/qtwebkit-opensource-src_5.212.0~alpha2-20/Tools/TestWebKitAPI/Tests/WTF/StringView.cpp:334:

        EXPECT_EQ(static_cast<size_t>(6), referenceA.findIgnoringASCIICase(stringViewFromLiteral("G")));
EXPECT_EQ(static_cast<size_t>(4), referenceA.findIgnoringASCIICase(stringViewFromUTF8(tempStringHolder, "EFG")));
EXPECT_EQ(static_cast<size_t>(3), referenceA.findIgnoringASCIICase(stringViewFromUTF8(tempStringHolder, "éEFG")));

EXPECT_EQ(static_cast<size_t>(6), referenceB.findIgnoringASCIICase(stringViewFromLiteral("g")));


actcd19/main/c/chromium/chromium_72.0.3626.121-1/net/disk_cache/blockfile/file_posix.cc:53:

      DCHECK(base_file_.IsValid());
if (buffer_len > static_cast<size_t>(std::numeric_limits<int32_t>::max()) ||
offset > static_cast<size_t>(std::numeric_limits<int32_t>::max())) {
return false;
}


actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/third_party/libaddressinput/src/cpp/src/address_field.cc:42:

      static_assert(RECIPIENT == size(kFieldNames) - 1, "bad_length");

if (field < 0 || static_cast<size_t>(field) >= size(kFieldNames)) {
o << "[INVALID ENUM VALUE " << static_cast<int>(field) << "]";
} else {


actcd19/main/g/gcc-arm-none-eabi/gcc-arm-none-eabi_7-2018-q2-5/gcc/go/gofrontend/import-archive.cc:333:

          const char* name = this->extended_names_.data() + x;
const char* name_end = strchr(name, '\n');
if (static_cast<size_t>(name_end - name) > this->extended_names_.size()
|| name_end[-1] != '/')
{


actcd19/main/libx/libxsmm/libxsmm_1.9-1/samples/smm/specialized.cpp:104:

          T *a, *b, *c, *d;
raii(libxsmm_blasint asize_, libxsmm_blasint bsize_, libxsmm_blasint csize_)
: a(new T[static_cast<size_t>(asize_)]), b(new T[static_cast<size_t>(bsize_)])
, c(new T[static_cast<size_t>(csize_)]), d(new T[static_cast<size_t>(csize_)]) {}
~raii() { delete[] a; delete[] b; delete[] c; delete[] d; }


actcd19/main/a/actor-framework/actor-framework_0.16.3-0.2/libcaf_io/src/udp.cpp:56:

                        << CAF_ARG(buf_len) << " of " << CAF_ARG(sres) << " bytes");
result = (sres > 0) ? static_cast<size_t>(sres) : 0;
*ep.length() = static_cast<size_t>(len);
return true;
}


actcd19/main/l/llvm-toolchain-8/llvm-toolchain-8_8~+rc3-1~exp1/utils/benchmark/test/benchmark_test.cc:164:

    
if (state.thread_index == 0) {
test_vector = new std::vector<int>(static_cast<size_t>(size));
}


actcd19/main/m/mkvtoolnix/mkvtoolnix_9.8.0-dmo1/lib/pugixml/src/pugixml.cpp:5907:

    			bool empty_ = (begin == end);

_buffer = empty_ ? PUGIXML_TEXT("") : duplicate_string(begin, static_cast<size_t>(end - begin), alloc);
_uses_heap = !empty_;
}


actcd19/main/r/retroarch/retroarch_1.7.3+dfsg1-1/wiiu/wut/elf2rpl/utils.h:114:

    align_down(Type value, size_t alignment)
{
return static_cast<Type>(static_cast<size_t>(value) & ~(alignment - 1));
}


actcd19/main/libr/libreoffice/libreoffice_6.0.5-1/connectivity/source/drivers/odbc/OTools.cxx:136:

    {
const size_t properSize = sqlTypeLen(_nType);
if ( properSize == static_cast<size_t>(-1) )
SAL_WARN( "connectivity.drivers", "connectivity::odbc::OTools::getValue: unknown SQL type - cannot check buffer size");
else


actcd19/main/c/chromium/chromium_72.0.3626.121-1/components/url_formatter/url_formatter.cc:518:

            // username/password.
adjustments->push_back(base::OffsetAdjuster::Adjustment(
static_cast<size_t>(nonempty_component->begin),
static_cast<size_t>(nonempty_component->len + 1), 0));
}


actcd19/main/c/chromium/chromium_72.0.3626.121-1/third_party/pdfium/core/fpdfdoc/cpdf_interactiveform.cpp:331:

          m_pCur++;

size = static_cast<size_t>(m_pCur - pSubName);
if (m_pCur < m_pEnd && m_pCur[0] == L'.')
m_pCur++;


actcd19/main/libr/libreoffice/libreoffice_6.0.6~rc1-1/vcl/qa/cppunit/pdfexport/pdfexport.cxx:512:

        auto pImages = dynamic_cast<vcl::filter::PDFDictionaryElement*>(pFormResources->LookupElement("XObject"));
CPPUNIT_ASSERT(pImages);
CPPUNIT_ASSERT_EQUAL(static_cast<size_t>(1), pImages->GetItems().size());
vcl::filter::PDFObjectElement* pImage = pImages->LookupObject(pImages->GetItems().begin()->first);
CPPUNIT_ASSERT(pImage);


actcd19/main/m/metview/metview_5.3.0-2/src/libMetview/BufrMetaData.cc:1226:

    
if(latLen != 1 && lonLen != 1 &&
(latLen != lonLen || latLen != static_cast<size_t>(subsetNum)))
break;


actcd19/main/c/chromium/chromium_72.0.3626.121-1/v8/src/wasm/wasm-interpreter.cc:2653:

    
void EnsureStackSpace(size_t size) {
if (V8_LIKELY(static_cast<size_t>(stack_limit_ - sp_) >= size)) return;
size_t old_size = stack_limit_ - stack_.get();
size_t requested_size =


actcd19/main/libr/libreoffice/libreoffice_6.1.5-1/sfx2/source/doc/SfxDocumentMetaData.cxx:752:

            // alas, this does not check for permutations, or attributes...
if (nullptr == i_pAttrs) {
if (static_cast<size_t>(i_rValue.getLength()) == vec.size()) {
bool isEqual(true);
for (sal_Int32 i = 0; i < i_rValue.getLength(); ++i) {


actcd19/main/libk/libkml/libkml_1.3.0-5/tests/kml/dom/schema_test.cc:204:

    TEST_F(SchemaTest, TestLists) {
// Vector is empty.
ASSERT_EQ(static_cast<size_t>(0), schema_->get_simplefield_array_size());
// Add three <SimpleField> elements:
schema_->add_simplefield(KmlFactory::GetFactory()->CreateSimpleField());


actcd19/main/libr/libreoffice/libreoffice_6.0.6~rc1-1/sc/source/filter/xml/XMLStylesExportHelper.cxx:818:

    {
OSL_ENSURE(static_cast<size_t>(nTable) < aTables.size(), "wrong table");
if (static_cast<size_t>(nTable) >= aTables.size())
return -1;
ScMyFormatRangeAddresses* pFormatRanges(aTables[nTable]);


actcd19/main/c/chromium/chromium_72.0.3626.121-1/net/base/mime_sniffer.cc:328:

      const char* end = static_cast<const char*>(memchr(content, '\0', size));
const size_t content_strlen =
(end != NULL) ? static_cast<size_t>(end - content) : size;

bool match = false;


actcd19/main/a/android-platform-system-core/android-platform-system-core_8.1.0+r23-4/base/logging_test.cpp:113:

      static_assert(android::base::severity < android::base::FATAL, "Bad input");            \
for (size_t i = static_cast<size_t>(android::base::severity) + 1; \
i <= static_cast<size_t>(android::base::FATAL); \
++i) { \
{ \


actcd19/main/a/android-platform-art/android-platform-art_8.1.0+r23-3/runtime/arch/stub_test.cc:1919:

    
ASSERT_FALSE(self->IsExceptionPending());
EXPECT_EQ(static_cast<size_t>(JNI_FALSE), result);

// Add object.


actcd19/main/libr/libreoffice/libreoffice_6.0.6~rc1-1/sw/source/ui/fldui/fldref.cxx:160:

                else if ( nTypeId == REFFLDFLAG_NUMITEM )
{
mnSavedSelectedPos = static_cast<size_t>(reinterpret_cast<sal_uLong>(pEntry->GetUserData()));
if ( mnSavedSelectedPos < maNumItems.size() )
{


actcd19/main/libr/libreoffice/libreoffice_5.4.3-4/sc/source/core/data/fillinfo.cxx:1032:

                    SCCOL nLastDocCol = (nCol2 < MAXCOL) ? ::std::min< SCCOL >( nLastRealDocCol, nCol2 + 1 ) : nLastRealDocCol;
sal_uInt16 nLastCellInfoX = static_cast< sal_uInt16 >( nLastDocCol + 1 );
size_t nLastCol = static_cast< size_t >( nLastCellInfoX - nCol1 );

// first visible row


actcd19/main/e/eclipse-titan/eclipse-titan_6.5.0-1/compiler2/ttcn3/ILT.cc:226:

                             string p_state_cond, size_t p_state_var,
size_t p_state_var_val, size_t p_goto_label_num)
: branchtype(p_bt), root(0), branch_i(static_cast<size_t>(-1)),
state_cond(p_state_cond), state_var(p_state_var),
state_var_val(p_state_var_val), goto_label_num(p_goto_label_num)


actcd19/main/c/chromium/chromium_72.0.3626.121-1/chrome/browser/ui/views/bookmarks/bookmark_context_menu_unittest.cc:148:

    
// Should have navigated to only f1a but not f2a.
ASSERT_EQ(static_cast<size_t>(1), navigator_.urls_.size());
ASSERT_TRUE(folder->GetChild(0)->url() == navigator_.urls_[0]);
}


actcd19/main/libr/libreoffice/libreoffice_6.1.5-1/sc/qa/unit/pivottable_filters_test.cxx:555:

        const ScDPCache* pCache = rSheetCaches.getExistingCache(ScRange(0, 0, 0, 9, 24, 0));
CPPUNIT_ASSERT_MESSAGE("Pivot cache is expected for A1:J25 on the first sheet.", pCache);
CPPUNIT_ASSERT_EQUAL(static_cast<size_t>(10), pCache->GetFieldCount());

xDocSh->DoClose();


actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/content/browser/loader/cross_site_document_resource_handler.cc:310:

      DCHECK_GE(*buf_size, net::kMaxBytesToSniff);
local_buffer_ =
base::MakeRefCounted<net::IOBuffer>(static_cast<size_t>(*buf_size));

// Store the next handler's buffer but don't read into it while sniffing,


actcd19/main/c/chromium/chromium_72.0.3626.121-1/third_party/angle/src/libANGLE/validationES.cpp:2079:

    
const auto &uniformLocations = program->getUniformLocations();
size_t castedLocation = static_cast<size_t>(location);
if (castedLocation >= uniformLocations.size())
{


actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/third_party/pdfium/testing/fake_file_access.cpp:102:

                                 unsigned char* pBuf,
unsigned long size) {
if (!IsDataAvail(static_cast<size_t>(position), static_cast<size_t>(size)))
return false;
return file_access_->m_GetBlock(file_access_->m_Param, position, pBuf, size);


actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/third_party/WebKit/Source/core/editing/iterators/TextSearcherICU.cpp:139:

      // TODO(iceman): It is possible to use |usearch_getText| function
// to retrieve text length and not store it explicitly.
if (!(match_start >= 0 && static_cast<size_t>(match_start) < text_length_)) {
DCHECK_EQ(match_start, USEARCH_DONE);
result.start = 0;


actcd19/main/a/ace/ace_6.4.5+dfsg-1/apps/JAWS3/jaws3/FILE.cpp:61:

                {
int r = this->map_->map (this->get_handle (),
static_cast<size_t> (length),
prot,
share,


actcd19/main/g/gromacs/gromacs_2019.1-1/src/gromacs/domdec/domdec_constraints.cpp:402:

        }

GMX_ASSERT(dc->con_gl.size() == static_cast<size_t>(dc->ncon), "con_gl size should match the number of constraints");
GMX_ASSERT(dc->con_nlocat.size() == static_cast<size_t>(dc->ncon), "con_nlocat size should match the number of constraints");


actcd19/main/l/llvm-toolchain-7/llvm-toolchain-7_7.0.1-8/libcxx/test/std/re/re.alg/re.alg.match/extended.pass.cpp:1215:

            assert(m.suffix().first == m[0].second);
assert(m.suffix().second == m[0].second);
assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<wchar_t>::length(s));
assert(m.position(0) == 0);
assert(m.str(0) == s);


actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/third_party/angle/src/libANGLE/State.cpp:2302:

                Texture *texture = getSamplerTexture(textureUnitIndex, textureType);
Sampler *sampler = getSampler(textureUnitIndex);
ASSERT(static_cast<size_t>(textureUnitIndex) < mCompleteTextureCache.size());
ASSERT(static_cast<size_t>(textureUnitIndex) < newActiveTextures.size());


actcd19/main/f/firefox/firefox_65.0.1-1/media/webrtc/signaling/gtest/jsep_session_unittest.cpp:4704:

      JsepOfferOptions options;
options.mOfferToReceiveAudio = Some(static_cast<size_t>(1U));
options.mOfferToReceiveVideo = Some(static_cast<size_t>(1U));

CreateOffer(Some(options));


actcd19/main/f/firefox-esr/firefox-esr_60.5.1esr-1/media/webrtc/trunk/webrtc/modules/audio_coding/neteq/neteq_impl.cc:1208:

    
size_t required_samples = output_size_samples_;
const size_t samples_10_ms = static_cast<size_t>(80 * fs_mult_);
const size_t samples_20_ms = 2 * samples_10_ms;
const size_t samples_30_ms = 3 * samples_10_ms;


actcd19/main/o/oar/oar_2.5.8-1/sources/extra/cpp-scheduler/UnitaryTests/TestResourceTree.cc:74:

      CPPUNIT_ASSERT_EQUAL( 21, get_needed_children_number(n) );  

CPPUNIT_ASSERT_EQUAL( static_cast<size_t>(0), n->children.size() );
CPPUNIT_ASSERT_EQUAL( std::string("toto"), get_current_resource_name(n) );
CPPUNIT_ASSERT_EQUAL( std::string("tutu"), get_current_resource_value(n) );


actcd19/main/libt/libt3widget/libt3widget_1.0.3-1/src/textline.cc:387:

    
/* Find the first non-zero-width char, and paint all zero-width chars now. */
while (static_cast<size_t>(i) < buffer_size && i < info.max && width_at(i) == 0) {
i += byte_width_from_first(i);
}


actcd19/main/r/rocksdb/rocksdb_5.17.2-3/utilities/blob_db/blob_db_impl.cc:1049:

      Slice crc_slice(blob_record.data(), sizeof(uint32_t));
Slice blob_value(blob_record.data() + sizeof(uint32_t) + key.size(),
static_cast<size_t>(blob_index.size()));
uint32_t crc_exp;
if (!GetFixed32(&crc_slice, &crc_exp)) {


actcd19/main/s/swift-im/swift-im_2.0+dev6-1/Swiften/Parser/PayloadParsers/UnitTest/SearchPayloadParserTest.cpp:156:

    
Form::FormItem item = items[0];
CPPUNIT_ASSERT_EQUAL(static_cast<size_t>(4), item.size());

CPPUNIT_ASSERT_EQUAL(std::string("Benvolio"), item[0]->getRawValues()[0]);


actcd19/main/t/tesseract/tesseract_3.04.01-6/cutil/freelist.cpp:23:

    
int *memalloc(int size) {
return static_cast<int*>(malloc(static_cast<size_t>(size)));
}


actcd19/main/i/imagevis3d/imagevis3d_3.1.0-7/ImageVis3D/UI/ImageVis3D_I3M.cpp:107:

        UINTVECTOR3 vLODSize = UINTVECTOR3(ss->cexecRet<UINT64VECTOR3>(
currentDataset.fqName() + ".getDomainSize",
static_cast<size_t>(iLODLevel), size_t(0)));
if (vLODSize.x >= 128 &&
vLODSize.y >= 128 &&


actcd19/main/o/openfst/openfst_1.6.3-2/src/include/fst/extensions/linear/linear-fst-data.h:418:

    struct FeatureGroup<A>::InputOutputLabelHash {
size_t operator()(InputOutputLabel label) const {
return static_cast<size_t>(label.input * 7853 + label.output);
}
};


actcd19/main/t/trilinos/trilinos_12.12.1-7/packages/tpetra/core/src/Tpetra_CrsGraph_def.hpp:4087:

    #ifdef HAVE_TPETRA_DEBUG
TEUCHOS_TEST_FOR_EXCEPTION_CLASS_FUNC
(static_cast<size_t> (numRowEnt_h.dimension_0 ()) != lclNumRows,
std::logic_error, "(StaticProfile unpacked branch) "
"numRowEnt_h.dimension_0() = " << numRowEnt_h.dimension_0 ()


actcd19/main/a/aspectc++/aspectc++_2.1-2/Puma/extern/lexertl/stream_shared_iterator.hpp:216:

                        sizeof(char_type));

_stream.read(&_buffer.front() + start_, len_);
read_ = static_cast<size_t>(_stream.gcount());
subtract(lowest_);


actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/content/browser/loader/mock_resource_loader.cc:116:

      EXPECT_FALSE(weak_factory_.HasWeakPtrs());
EXPECT_EQ(Status::IDLE, status_);
EXPECT_LE(bytes.size(), static_cast<size_t>(io_buffer_size_));

status_ = Status::CALLING_HANDLER;


actcd19/main/a/android-platform-art/android-platform-art_8.1.0+r23-3/runtime/gc/space/region_space.cc:166:

        result = true;
} else {
bool is_live_percent_valid = live_bytes_ != static_cast<size_t>(-1);
if (is_live_percent_valid) {
DCHECK(IsInToSpace());


actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/third_party/webrtc/rtc_base/ifaddrs-android.cc:148:

    
ssize_t count = send(fd, &ifaddr_request, ifaddr_request.header.nlmsg_len, 0);
if (static_cast<size_t>(count) != ifaddr_request.header.nlmsg_len) {
close(fd);
return -1;


actcd19/main/n/nss-pem/nss-pem_1.0.4-1/nss/nss/gtests/pk11_gtest/pk11_signature_test.h:79:

        int sigLen = PK11_SignatureLen(privKey.get());
EXPECT_LT(0, sigLen);
sig->Allocate(static_cast<size_t>(sigLen));
SECItem sigItem = {siBuffer, toUcharPtr(sig->data()),
static_cast<unsigned int>(sig->len())};


actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/third_party/angle/src/libANGLE/validationES.cpp:812:

            bool fillsEntireMip = xoffset == 0 && yoffset == 0 &&
static_cast<size_t>(width) == textureWidth &&
static_cast<size_t>(height) == textureHeight;
bool sizeMultipleOfBlockSize = (width % formatInfo.compressedBlockWidth) == 0 &&
(height % formatInfo.compressedBlockHeight) == 0;


actcd19/main/c/chromium/chromium_72.0.3626.121-1/v8/src/flags.cc:330:

          // make a copy so we can NUL-terminate flag name
size_t n = arg - *name;
CHECK(n < static_cast<size_t>(buffer_size)); // buffer is too small
MemCopy(buffer, *name, n);
buffer[n] = '\0';


actcd19/main/u/unanimity/unanimity_3.3.0+dfsg-2.1/include/pacbio/genomicconsensus/poa/Poa.h:132:

                const size_t numSpanning = std::count_if(
reads.begin(), reads.end(), [&interval](const PacBio::BAM::BamRecord& read) {
const auto readStart = static_cast<size_t>(read.ReferenceStart());
const auto readEnd = static_cast<size_t>(read.ReferenceEnd());
return readStart <= interval.Left() && interval.Right() <= readEnd;


actcd19/main/s/salmon/salmon_0.12.0+ds1-1/src/metro/metrohash64.cpp:70:

                fill = length;

memcpy(input.b + (bytes % 32), ptr, static_cast<size_t>(fill));
ptr += fill;
bytes += fill;


actcd19/main/t/trilinos/trilinos_12.12.1-7/packages/teuchos/kokkoscompat/test/linkTest.cpp:309:

          strides[0] = static_cast<size_t> (0);
strides[1] = static_cast<size_t> (0);
strides[2] = static_cast<size_t> (0);
X_j.stride (strides);
TEST_EQUALITY_CONST(strides[0], static_cast<size_t>(1)); // stride between X_j(i,j) and X_j(i+1,j)


actcd19/main/libr/libreoffice/libreoffice_6.1.5-1/sc/qa/unit/ucalc.cxx:527:

    
// Entries are supposed to be sorted in ascending order, and are all unique.
CPPUNIT_ASSERT_EQUAL(static_cast<size_t>(3), aEntries.size());
std::vector<ScTypedStrData>::const_iterator it = aEntries.begin();
CPPUNIT_ASSERT_EQUAL(OUString("Andy"), it->GetString());


actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/mojo/edk/system/node_controller.cc:72:

    
void RecordPendingChildCount(size_t count) {
DCHECK_LE(count, static_cast<size_t>(std::numeric_limits<int32_t>::max()));

// 8k is the maximum number of file descriptors allowed in Chrome.


actcd19/main/libf/libfm-qt/libfm-qt_0.12.0-13/src/browsehistory.cpp:57:

    
void BrowseHistory::setCurrentIndex(int index) {
if(index >= 0 && static_cast<size_t>(index) < items_.size()) {
currentIndex_ = index;
// FIXME: should we emit a signal for the change?


actcd19/main/libo/libosmium/libosmium_2.15.0-1/test/t/io/test_reader.cpp:160:

        osmium::io::detail::reliable_close(fd);

osmium::io::File file{buffer, static_cast<size_t>(length), "osm.gz"};
osmium::io::Reader reader{file};
CountHandler handler;


actcd19/main/l/llvm-toolchain-3.8/llvm-toolchain-3.8_3.8.1-23/lldb/source/Plugins/SystemRuntime/MacOSX/SystemRuntimeMacOSX.cpp:806:

                            uint32_t start_of_array_offset = offset;
while (offset < pending_items_pointer.items_buffer_size &&
static_cast<size_t>(i) < pending_items_pointer.count)
{
offset = start_of_array_offset + (i * item_size);


actcd19/main/z/zeroc-ice/zeroc-ice_3.6.4-1+buster/cpp/test/IceUtil/sha1/Client.cpp:102:

            while(begin != end)
{
size_t packetSize = min(static_cast<size_t>(5), static_cast<size_t>(end - begin));
hasher.update(begin, packetSize);
begin += packetSize;


actcd19/main/libr/libreoffice/libreoffice_6.1.5-1/sc/qa/unit/pivottable_filters_test.cxx:1384:

        ScDocument& rDoc = xDocSh->GetDocument();
ScDPCollection* pDPs = rDoc.GetDPCollection();
CPPUNIT_ASSERT_EQUAL(static_cast<size_t>(3), pDPs->GetCount());

// Reload and check filtering of row dimensions


actcd19/main/c/cloudcompare/cloudcompare_2.10.1-1/qCC/ccClippingBoxTool.cpp:708:

    						{
int cloudIndex = ((k - indexMins[2]) * static_cast<int>(gridDim[1]) + (j - indexMins[1])) * static_cast<int>(gridDim[0]) + (i - indexMins[0]);
assert(cloudIndex >= 0 && static_cast<size_t>(cloudIndex)* clouds.size() < refClouds.size());

for (size_t ci = 0; ci != clouds.size(); ++ci)


actcd19/main/s/salmon/salmon_0.12.0+ds1-1/src/AlignmentModel.cpp:446:

      }
// unsigned version of transcriptIdx
size_t uTranscriptIdx = static_cast<size_t>(transcriptIdx);

uint32_t* cigar = bam_cigar(read);


actcd19/main/libr/libreoffice/libreoffice_6.0.5-1/sc/source/core/tool/dbdata.cxx:681:

            // the head and tail elements that are to be copied for deletion or
// insertion.
size_t nHead = static_cast<size_t>(::std::max( nCol1 + (nDx < 0 ? nDx : 0) - nOldCol1, 0));
size_t nTail = static_cast<size_t>(::std::max( nOldCol2 - nCol1 + 1, 0));
size_t n = nHead + nTail;


actcd19/main/g/gromacs/gromacs_2019.1-1/src/gromacs/domdec/domdec_constraints.cpp:403:

    
GMX_ASSERT(dc->con_gl.size() == static_cast<size_t>(dc->ncon), "con_gl size should match the number of constraints");
GMX_ASSERT(dc->con_nlocat.size() == static_cast<size_t>(dc->ncon), "con_nlocat size should match the number of constraints");

if (debug)


actcd19/main/i/imagevis3d/imagevis3d_3.1.0-7/Tuvok/IO/uvfDataset.cpp:871:

                                             [static_cast<size_t>(key.brick[0])]
[static_cast<size_t>(key.brick[1])]
[static_cast<size_t>(key.brick[2])]);
}
}


actcd19/main/m/mariadb-10.3/mariadb-10.3_10.3.12-2/storage/rocksdb/rocksdb/db/db_compaction_test.cc:895:

      compact_opt.output_file_size_limit = 4096;
const size_t key_len =
static_cast<size_t>(compact_opt.output_file_size_limit) / 5;

DestroyAndReopen(options);


actcd19/main/n/nodejs/nodejs_10.15.2~dfsg-1/deps/v8/third_party/antlr4/runtime/Cpp/runtime/src/atn/ATNSerializer.cpp:62:

    
// convert grammar type to ATN const to avoid dependence on ANTLRParser
data.push_back(static_cast<size_t>(atn->grammarType));
data.push_back(atn->maxTokenType);
size_t nedges = 0;


actcd19/main/t/trilinos/trilinos_12.12.1-7/packages/teuchos/kokkoscompat/test/linkTest.cpp:286:

      {
size_t strides[3]; // stride[rank] is the maximum span
strides[0] = static_cast<size_t> (0);
strides[1] = static_cast<size_t> (0);
strides[2] = static_cast<size_t> (0);


actcd19/main/c/chromium/chromium_72.0.3626.121-1/third_party/webrtc/video/video_quality_test.cc:1085:

          kVideoSendSsrcs[params_.ss[0].selected_stream],
kSendRtxSsrcs[params_.ss[0].selected_stream],
static_cast<size_t>(params_.ss[0].selected_stream),
params.ss[0].selected_sl, params_.video[0].selected_tl,
is_quick_test_enabled, clock_, params_.logging.rtp_dump_name);


actcd19/main/c/cataclysm-dda/cataclysm-dda_0.C+git20190228.faafa3a-2/src/inventory_ui.cpp:1596:

    size_t inventory_selector::get_columns_width( const std::vector<inventory_column *> &columns ) const
{
return std::accumulate( columns.begin(), columns.end(), static_cast< size_t >( 0 ),
[]( const size_t &lhs, const inventory_column * column ) {
return lhs + column->get_width();


actcd19/main/q/qtwebkit-opensource-src/qtwebkit-opensource-src_5.212.0~alpha2-20/Tools/TestWebKitAPI/Tests/WTF/StringImpl.cpp:213:

    
// Not a prefix.
EXPECT_EQ(static_cast<size_t>(WTF::notFound), referenceA->findIgnoringASCIICase(StringImpl::createFromLiteral("x").get()));
EXPECT_EQ(static_cast<size_t>(WTF::notFound), referenceA->findIgnoringASCIICase(stringFromUTF8("accé").get()));
EXPECT_EQ(static_cast<size_t>(WTF::notFound), referenceA->findIgnoringASCIICase(stringFromUTF8("abcÉ").get()));


actcd19/main/p/python-grpc-tools/python-grpc-tools_1.14.1-1/third_party/protobuf/src/google/protobuf/message_unittest.cc:326:

      // close to 2G.
string data = message.SerializeAsString();
size_t count = static_cast<size_t>(kint32max) / data.size();
RepeatedInputStream input(data, count);


actcd19/main/c/chromium/chromium_72.0.3626.121-1/v8/src/roots.h:454:

      }
ObjectSlot end() {
return ObjectSlot(&roots_[static_cast<size_t>(RootIndex::kLastRoot) + 1]);
}


actcd19/main/m/mysql-connector-c++/mysql-connector-c++_1.1.9-4/driver/mysql_art_resultset.cpp:651:

    	checkValid();
/* row_position is 0 based */
return static_cast<size_t> (row_position);
}
/* }}} */


actcd19/main/i/imagevis3d/imagevis3d_3.1.0-7/Tuvok/IO/GeomViewConverter.cpp:80:

      MESSAGE("%llu faces.", n_faces);

size_t n_vertices_st = static_cast<size_t>(n_vertices);
VertVec vertices(n_vertices_st);
const uint64_t steps = (n_vertices / 10000) > 0 ? (n_vertices / 10000) : 1000;


actcd19/main/g/gdal/gdal_2.4.0+dfsg-1/frmts/netcdf/gmtdataset.cpp:153:

        CPLMutexHolderD(&hNCMutex);

size_t start[2] = {static_cast<size_t>(nBlockYOff * nBlockXSize), 0};
size_t edge[2] = {static_cast<size_t>(nBlockXSize), 0};


actcd19/main/f/firefox/firefox_65.0.1-1/xpcom/base/ClearOnShutdown.cpp:36:

        if (sShutdownObservers[static_cast<size_t>(phase)]) {
while (ShutdownObserver* observer =
sShutdownObservers[static_cast<size_t>(phase)]->popFirst()) {
observer->Shutdown();
delete observer;


actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/chrome/browser/devtools/devtools_file_system_indexer.cc:350:

      }

size_t size = static_cast<size_t>(bytes_read);
vector<TrigramChar> trigram_chars;
trigram_chars.reserve(size);


actcd19/main/r/rocksdb/rocksdb_5.17.2-3/utilities/persistent_cache/persistent_cache_test.cc:263:

        const std::string& dbname) {
const auto memory_size = 1 * 1024 * 1024 * kStressFactor;
return NewTieredCache(Env::Default(), dbname, static_cast<size_t>(memory_size));
}


actcd19/main/l/llvm-toolchain-7/llvm-toolchain-7_7.0.1-8/libcxx/test/std/re/re.alg/re.alg.match/extended.pass.cpp:401:

            assert(m.suffix().first == m[0].second);
assert(m.suffix().second == m[0].second);
assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<char>::length(s));
assert(m.position(0) == 0);
assert(m.str(0) == s);


actcd19/main/f/firefox/firefox_65.0.1-1/security/certverifier/CertVerifier.cpp:271:

        MOZ_LOG(gCertVerifierLog, LogLevel::Debug,
("Got TLS SCT data of length %zu\n",
static_cast<size_t>(sctsFromTLS.GetLength())));
}


actcd19/main/q/qpdf/qpdf_6.0.0-2/qpdf/test_driver.cc:1240:

                    std::string t;
for (size_t i = 0;
i < std::min(data.size(), static_cast<size_t>(20));
++i)
{


actcd19/main/libi/libixion/libixion_0.14.1-4/src/python/document.cpp:185:

                return nullptr;

if (index < 0 || static_cast<size_t>(index) >= sheets.size())
{
PyErr_SetString(PyExc_IndexError, "Out-of-bound sheet index");


actcd19/main/l/llvm-toolchain-7/llvm-toolchain-7_7.0.1-8/libcxx/test/std/re/re.alg/re.alg.match/extended.pass.cpp:333:

            assert(m.suffix().first == m[0].second);
assert(m.suffix().second == m[0].second);
assert(m.length(0) >= 0 && static_cast<size_t>(m.length(0)) == std::char_traits<char>::length(s));
assert(m.position(0) == 0);
assert(m.str(0) == s);