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/libr/libreoffice/libreoffice_6.1.5-1/sc/source/core/data/tabprotection.cxx:412:

    bool ScTableProtectionImpl::isOptionEnabled(SCSIZE nOptId) const
{
if ( maOptions.size() <= static_cast<size_t>(nOptId) )
{
OSL_FAIL("ScTableProtectionImpl::isOptionEnabled: wrong size");


actcd19/main/c/chromium/chromium_72.0.3626.121-1/third_party/crashpad/crashpad/util/net/http_transport_socket.cc:182:

        FileOperationResult rv;
while ((rv = SSL_read(ssl_.get(), buffer, sizeof(buffer))) > 0) {
DCHECK_LE(static_cast<size_t>(rv), sizeof(buffer));
contents->append(buffer, rv);
}


actcd19/main/l/llvm-toolchain-8/llvm-toolchain-8_8~+rc3-1~exp1/lldb/source/Core/IOHandler.cpp:3383:

        case ',':
if (m_first_visible_line > 0) {
if (static_cast<size_t>(m_first_visible_line) >= num_visible_lines)
m_first_visible_line -= num_visible_lines;
else


actcd19/main/f/fw4spl/fw4spl_17.2.0-2/SrcLib/core/fwData/test/tu/src/MeshTest.cpp:94:

        CPPUNIT_ASSERT_EQUAL(static_cast<size_t>(mesh->getNumberOfPoints()), mesh->getPointColorsArray()->getSize()[0]);
mesh->allocatePointTexCoords();
CPPUNIT_ASSERT_EQUAL(static_cast<size_t>(mesh->getNumberOfPoints()), mesh->getPointTexCoordsArray()->getSize()[0]);

CPPUNIT_ASSERT_EQUAL(static_cast<unsigned char>(4), mesh->getPointNormalsArray()->getType().sizeOf());


actcd19/main/c/chromium/chromium_72.0.3626.121-1/third_party/pdfium/core/fxge/win32/fx_win32_print.cpp:658:

      while (len > 0) {
char buffer[1026];
size_t send_len = std::min(len, static_cast<size_t>(1024));
*(reinterpret_cast<uint16_t*>(buffer)) = send_len;
memcpy(buffer + 2, text.c_str(), send_len);


actcd19/main/o/openclonk/openclonk_8.1-1/src/script/C4Aul.cpp:42:

    
static_assert(std::extent<decltype(C4AulWarningMessages), 0>::value - 1 == static_cast<size_t>(C4AulWarningId::WarningCount), "Warning message count doesn't match warning count");
static_assert(std::extent<decltype(C4AulWarningIDs), 0>::value - 1 == static_cast<size_t>(C4AulWarningId::WarningCount), "Warning ID count doesn't match warning count");

static class DefaultErrorHandler : public C4AulErrorHandler


actcd19/main/t/trilinos/trilinos_12.12.1-7/packages/tpetra/core/test/CrsMatrix/CrsMatrix_NonlocalSumInto.cpp:238:

    
if (globalRow == globalMinRow && globalRow > rowMap->getMinAllGlobalIndex ()) {
if (numEntries != static_cast<size_t> (2)) {
localGraphSuccess = false;
graphFailMsg << "Proc " << myRank << ": globalRow = " << globalRow << ": numEntries = " << numEntries << " != 2" << endl;


actcd19/main/c/chromium/chromium_72.0.3626.121-1/chrome/browser/extensions/api/storage/sync_value_store_cache.cc:29:

    SettingsStorageQuotaEnforcer::Limits GetSyncQuotaLimits() {
SettingsStorageQuotaEnforcer::Limits limits = {
static_cast<size_t>(api::storage::sync::QUOTA_BYTES),
static_cast<size_t>(api::storage::sync::QUOTA_BYTES_PER_ITEM),
static_cast<size_t>(api::storage::sync::MAX_ITEMS)};


actcd19/main/z/z3/z3_4.4.1-0.4/src/smt/smt_eq_justification.h:43:

    
explicit eq_justification():
m_data(reinterpret_cast<void*>(static_cast<size_t>(AXIOM))) {
}


actcd19/main/libr/libreoffice/libreoffice_6.0.6~rc1-1/sc/qa/unit/ucalc.cxx:231:

        rPool.purge();
CPPUNIT_ASSERT_EQUAL(static_cast<size_t>(2), rPool.getCount());
CPPUNIT_ASSERT_EQUAL(static_cast<size_t>(2), rPool.getCountIgnoreCase());

// Clear A4 and purge again.


actcd19/main/b/botan/botan_2.9.0-2/src/lib/pubkey/xmss/xmss_tools.h:126:

                            size_t len)
{
size_t c = static_cast<size_t>(std::min(len, sizeof(src)));
if(len > sizeof(src))
{


actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/components/viz/service/display/program_binding.h:159:

               (static_cast<size_t>(key.blend_mode_) << 9) ^
(static_cast<size_t>(key.aa_mode_) << 15) ^
(static_cast<size_t>(key.swizzle_mode_) << 16) ^
(static_cast<size_t>(key.is_opaque_) << 17) ^
(static_cast<size_t>(key.premultiplied_alpha_) << 19) ^


actcd19/main/o/owncloud-client/owncloud-client_2.3.3+dfsg-2/src/3rdparty/libcrashreporter-qt/3rdparty/breakpad/client/mac/handler/minidump_generator.cc:1425:

        MacFileUtilities::MachoID macho(module_path,
reinterpret_cast<void *>(module->base_of_image),
static_cast<size_t>(module->size_of_image));
result = macho.UUIDCommand(cpu_type, CPU_SUBTYPE_MULTIPLE, identifier);
if (!result)


actcd19/main/f/firefox/firefox_65.0.1-1/media/gmp-clearkey/0.1/ClearKeyUtils.cpp:149:

        // Cast idx to size_t before using it as an array-index,
// to pacify clang 'Wchar-subscripts' warning:
size_t idx = static_cast<size_t>(out[i]);

// out of bounds index for 'sAlphabet'


actcd19/main/a/android-platform-art/android-platform-art_8.1.0+r23-3/runtime/generated/asm_support_gen.h:86:

    DEFINE_CHECK_EQ(static_cast<int32_t>(METHOD_DEX_CACHE_HASH_BITS), (static_cast<int32_t>(art::LeastSignificantBit(art::mirror::DexCache::kDexCacheMethodCacheSize))))
#define CARD_TABLE_CARD_SHIFT 0xa
DEFINE_CHECK_EQ(static_cast<size_t>(CARD_TABLE_CARD_SHIFT), (static_cast<size_t>(art::gc::accounting::CardTable::kCardShift)))
#define MIN_LARGE_OBJECT_THRESHOLD 0x3000
DEFINE_CHECK_EQ(static_cast<size_t>(MIN_LARGE_OBJECT_THRESHOLD), (static_cast<size_t>(art::gc::Heap::kMinLargeObjectThreshold)))


actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/components/history/core/browser/visit_database_unittest.cc:428:

      options.duplicate_policy = QueryOptions::KEEP_ALL_DUPLICATES;
GetVisibleVisitsForURL(url_id, options, &results);
ASSERT_EQ(static_cast<size_t>(3), results.size());
EXPECT_TRUE(IsVisitInfoEqual(results[0], test_visit_rows[5]));
EXPECT_TRUE(IsVisitInfoEqual(results[1], test_visit_rows[1]));


actcd19/main/p/pbbam/pbbam_0.7.4+ds-1/src/pugixml/pugixml.cpp:10032:

    			if (value.begin)
{
size_t length = static_cast<size_t>(value.end - value.begin);

char_t* c = static_cast<char_t*>(_alloc->allocate_nothrow((length + 1) * sizeof(char_t)));


actcd19/main/w/webkit2gtk/webkit2gtk_2.22.7-1/Source/WebCore/html/HTMLMediaElement.cpp:287:

        };
static_assert(static_cast<size_t>(HTMLMediaElementEnums::NETWORK_EMPTY) == 0, "HTMLMediaElementEnums::NETWORK_EMPTY is not 0 as expected");
static_assert(static_cast<size_t>(HTMLMediaElementEnums::NETWORK_IDLE) == 1, "HTMLMediaElementEnums::NETWORK_IDLE is not 1 as expected");
static_assert(static_cast<size_t>(HTMLMediaElementEnums::NETWORK_LOADING) == 2, "HTMLMediaElementEnums::NETWORK_LOADING is not 2 as expected");
static_assert(static_cast<size_t>(HTMLMediaElementEnums::NETWORK_NO_SOURCE) == 3, "HTMLMediaElementEnums::NETWORK_NO_SOURCE is not 3 as expected");


actcd19/main/l/llvm-toolchain-8/llvm-toolchain-8_8~+rc3-1~exp1/lldb/source/Plugins/SystemRuntime/MacOSX/SystemRuntimeMacOSX.cpp:826:

                pending_item_refs.new_style = false;
while (offset < pending_items_pointer.items_buffer_size &&
static_cast<size_t>(i) < pending_items_pointer.count) {
ItemRefAndCodeAddress item;
item.item_ref = extractor.GetPointer(&offset);


actcd19/main/v/vtk6/vtk6_6.3.0+dfsg2-2/Common/Core/vtkSortDataArray.cxx:439:

          qsort(static_cast<void*>(arr->GetVoidPointer(0)),
static_cast<size_t>(arr->GetNumberOfTuples()),
static_cast<size_t>(arr->GetDataTypeSize()*nc),
vtkSortDataArrayComponentCompare_VTK_DOUBLE);
break;


actcd19/main/v/vtk7/vtk7_7.1.1+dfsg1-12/IO/Geometry/vtkOpenFOAMReader.cxx:6434:

                if (!foundDup)
{
if (nPoints >= static_cast<size_t>(maxNPoints))
{
vtkErrorMacro(<< "Too large polyhedron at cellId = " << cellId);


actcd19/main/p/pcl/pcl_1.9.1+dfsg1-3/recognition/include/pcl/recognition/dense_quantized_multi_mod_template.h:88:

        serialize (std::ostream & stream) const
{
const size_t num_of_modalities = static_cast<size_t> (modalities.size ());
write (stream, num_of_modalities);
for (size_t modality_index = 0; modality_index < num_of_modalities; ++modality_index)


actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/media/renderers/video_renderer_impl.cc:960:

      const size_t max_buffered_frames = std::min(
min_buffered_frames_ *
static_cast<size_t>(std::ceil(
(read_durations_.max() - frame_duration).InMillisecondsF() /
frame_duration.InMillisecondsF())),


actcd19/main/libr/libreoffice/libreoffice_6.1.5-1/sw/source/uibase/misc/glosdoc.cxx:184:

        const OUString sNewPath(rGroupName.getToken(1, GLOS_DELIM));
sal_uInt16 nNewPath = static_cast<sal_uInt16>(sNewPath.toInt32());
if (static_cast<size_t>(nNewPath) >= m_PathArr.size())
return false;
const OUString sNewFilePath(m_PathArr[nNewPath]);


actcd19/main/b/binutils/binutils_2.28-5/gold/archive.cc:539:

    	      gold_error(_("%s: short archive header at %zu"),
this->archive_->filename().c_str(),
static_cast<size_t>(this->off_));
this->off_ = filesize;
}


actcd19/main/f/fw4spl/fw4spl_17.2.0-2/Bundles/visu/visuVTKAdaptor/src/visuVTKAdaptor/SProbeCursor.cpp:338:

            ::fwDataTools::helper::Image imageHelper(image);
const size_t x = static_cast<size_t>(index[0]);
const size_t y = static_cast<size_t>(index[1]);
const size_t z = static_cast<size_t>(index[2]);
const std::string greyLevel = imageHelper.getPixelAsString(x, y, z);


actcd19/main/g/grpc/grpc_1.16.1-1/test/core/iomgr/timer_heap_test.cc:142:

      }
for (size_t i = 0; i < count * 2; i++) {
size_t a = static_cast<size_t>(rand()) % count;
size_t b = static_cast<size_t>(rand()) % count;
GPR_SWAP(size_t, search_order[a], search_order[b]);


actcd19/main/libr/libreoffice/libreoffice_6.1.5-1/dbaccess/source/ui/control/RelationControl.cxx:273:

        {
OUString sText;
if ( m_pConnData->GetConnLineDataList().size() > static_cast<size_t>(nRow) )
{
OConnectionLineDataRef pConnLineData = m_pConnData->GetConnLineDataList()[nRow];


actcd19/main/d/darktable/darktable_2.6.0-1/src/external/rawspeed/src/librawspeed/common/RawImage.cpp:289:

          alignedMallocArray<uchar8, 16>(uncropped_dim.y, mBadPixelMapPitch);
memset(mBadPixelMap, 0,
static_cast<size_t>(mBadPixelMapPitch) * uncropped_dim.y);
if (!mBadPixelMap)
ThrowRDE("Memory Allocation failed.");


actcd19/main/libr/libreoffice/libreoffice_6.0.6~rc1-1/sc/inc/address.hxx:756:

        return
(static_cast<size_t>(aStart.Col()) << 24) ^ // start column <= 2^8
(static_cast<size_t>(aStart.Row()) << 16) ^ // start row <= 2^8
static_cast<size_t>(aEnd.Row());
}


actcd19/main/p/python-grpc-tools/python-grpc-tools_1.14.1-1/third_party/protobuf/src/google/protobuf/duration.pb.cc:152:

      _internal_metadata_.MergeFrom(from._internal_metadata_);
::memcpy(&seconds_, &from.seconds_,
static_cast<size_t>(reinterpret_cast<char*>(&nanos_) -
reinterpret_cast<char*>(&seconds_)) + sizeof(nanos_));
// @@protoc_insertion_point(copy_constructor:google.protobuf.Duration)


actcd19/main/g/grpc/grpc_1.16.1-1/src/core/ext/transport/chttp2/transport/stream_map.cc:153:

        GPR_ASSERT(map->count > 0);
}
return map->values[(static_cast<size_t>(rand())) % map->count];
}


actcd19/main/c/chromium/chromium_72.0.3626.121-1/content/browser/service_worker/service_worker_test_utils.cc:389:

      EXPECT_TRUE(write.is_info);
if (write.result > 0) {
EXPECT_EQ(write.length, static_cast<size_t>(info_buf->response_data_size));
info_written_ += info_buf->response_data_size;
}


actcd19/main/c/cloudcompare/cloudcompare_2.10.1-1/plugins/core/qRANSAC_SD/RANSAC_SD_orig/GfxTL/AACubeTree.h:825:

    			//CellCenter(cell, ti, &center);
size_t childIdx = 0;
for(size_t i = 0; i < static_cast<size_t>(DimT); ++i)
{
if(point[i] > cell.Center()[i])//center[i])


actcd19/main/k/kdepimlibs/kdepimlibs_4.14.10-10/qgpgme/dataprovider.cpp:75:

        return 0; // EOF
}
size_t amount = qMin( bufSize, static_cast<size_t>( mArray.size() - mOff ) );
assert( amount > 0 );
memcpy( buffer, mArray.data() + mOff, amount );


actcd19/main/libr/libreoffice/libreoffice_6.1.5-1/sc/source/filter/xml/XMLStylesExportHelper.cxx:796:

            {
i = 0;
while (!bFound && static_cast<size_t>(i) < aAutoStyleNames.size())
{
if (*aAutoStyleNames[i] == rString)


actcd19/main/m/mkvtoolnix/mkvtoolnix_31.0.0-1/src/output/p_pcm.cpp:39:

      , m_samples_per_packet_packaged{}
, m_packet_size(0)
, m_min_packet_size{static_cast<size_t>(samples_to_size(samples_per_sec * 4) / 1000)} // Minimum: 4ms of samples if we should pass it through unmodified
, m_samples_output(0)
, m_num_durations_provided{}


actcd19/main/z/zeroc-ice/zeroc-ice_3.7.2-4/cpp/src/Ice/ios/StreamTransceiver.cpp:387:

            buf.i += ret;

if(packetSize > static_cast<size_t>(buf.b.end() - buf.i))
{
packetSize = buf.b.end() - buf.i;


actcd19/main/m/mariadb-10.3/mariadb-10.3_10.3.13-1/storage/rocksdb/rocksdb/db/db_test2.cc:2329:

        ASSERT_LT(
rate_limited_bytes,
static_cast<size_t>(2 * kNumKeysPerFile * kBytesPerKey * kNumL0Files +
direct_io_extra));


actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/third_party/swiftshader/third_party/llvm-subzero/lib/Demangle/ItaniumDemangle.cpp:167:

              return first;
}
if (static_cast<size_t>(last - t) >= n) {
std::string r(t, n);
if (r.substr(0, 10) == "_GLOBAL__N")


actcd19/main/c/chromium/chromium_72.0.3626.121-1/net/socket/ssl_client_socket_unittest.cc:550:

      DCHECK_NE(-1, pending_read_buf_len_);

if (static_cast<size_t>(pending_read_buf_len_) < data.size())
return false;


actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/content/browser/service_worker/service_worker_data_pipe_reader_unittest.cc:376:

    
// Read the pushed data correctly.
ASSERT_EQ(static_cast<size_t>(i + 1),
mock_url_request_job()->async_read_bytes().size());
EXPECT_EQ(static_cast<int>(sizeof(kTestData) - 1),


actcd19/main/libr/libreoffice/libreoffice_6.1.5-1/i18nlangtag/qa/cppunit/test_languagetag.cxx:219:

            CPPUNIT_ASSERT_EQUAL( OUString("ca"), ca_ES_valencia.getLanguageAndScript() );
::std::vector< OUString > ca_ES_valencia_Fallbacks( ca_ES_valencia.getFallbackStrings( true));
CPPUNIT_ASSERT_EQUAL( static_cast<size_t>(5), ca_ES_valencia_Fallbacks.size());
CPPUNIT_ASSERT_EQUAL( OUString("ca-ES-valencia"), ca_ES_valencia_Fallbacks[0]);
CPPUNIT_ASSERT_EQUAL( OUString("ca-XV"), ca_ES_valencia_Fallbacks[1]);


actcd19/main/i/isc-kea/isc-kea_1.5.0-1/src/lib/dhcpsrv/tests/generic_lease_mgr_unittest.cc:2075:

        ASSERT_NO_THROW(lmptr_->getExpiredLeases6(expired_leases, 1000));
// Leases with even indexes should be returned as expired.
ASSERT_EQ(static_cast<size_t>(leases.size() / 2), expired_leases.size());

// The expired leases should be returned from the most to least expired.


actcd19/main/m/mongodb/mongodb_3.4.18-2/src/mongo/db/field_parser_test.cpp:422:

            ASSERT_EQUALS("b", parsedMap["b"]);
ASSERT_EQUALS("c", parsedMap["c"]);
ASSERT_EQUALS(parsedMap.size(), static_cast<size_t>(3));
}
}


actcd19/main/m/monero/monero_0.13.0.4-2/src/cryptonote_core/blockchain.cpp:856:

      else
{
size_t offset = height - std::min < size_t > (height, static_cast<size_t>(DIFFICULTY_BLOCKS_COUNT));
if (offset == 0)
++offset;


actcd19/main/n/nodejs/nodejs_10.15.2~dfsg-1/deps/v8/src/compiler/code-generator.cc:882:

    DeoptimizeKind CodeGenerator::GetDeoptimizationKind(
int deoptimization_id) const {
size_t const index = static_cast<size_t>(deoptimization_id);
DCHECK_LT(index, deoptimization_states_.size());
return deoptimization_states_[index]->kind();


actcd19/main/n/nodejs/nodejs_10.15.2~dfsg-1/deps/v8/src/heap/heap.cc:4295:

      max_old_generation_size_in_mb =
Max(max_old_generation_size_in_mb,
static_cast<size_t>(kMinOldGenerationSize));

// If we are on a device with lots of memory, we allow a high heap


actcd19/main/f/firefox-esr/firefox-esr_60.5.1esr-1/media/webrtc/trunk/webrtc/modules/audio_coding/neteq/tools/neteq_quality_test.cc:407:

        RTC_DCHECK_EQ(out_frame_.num_channels_, channels_);
RTC_DCHECK_EQ(out_frame_.samples_per_channel_,
static_cast<size_t>(kOutputSizeMs * out_sampling_khz_));
RTC_CHECK(output_->WriteArray(
out_frame_.data_,


actcd19/main/f/firefox-esr/firefox-esr_60.5.1esr-1/security/nss/gtests/ssl_gtest/ssl_hrr_unittest.cc:534:

      EXPECT_TRUE(firstHello);
EXPECT_EQ(DataBuffer(kApplicationToken, sizeof(kApplicationToken)),
DataBuffer(clientToken, static_cast<size_t>(clientTokenLen)));
return ssl_hello_retry_accept;
}


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/c/cmtk/cmtk_3.3.1p1+dfsg-1/libs/Base/cmtkGaussianKernel.h:83:

      {
const double normFactor = 1.0/(sqrt(2*M_PI) * sigma.Value());
const size_t radius = static_cast<size_t>( Self::GetRadius( sigma, normFactor, maxError ) );

std::vector<TFloat> kernel( radius + 1 );


actcd19/main/c/chromium/chromium_72.0.3626.121-1/chrome/browser/page_load_metrics/observers/use_counter_page_load_metrics_observer.cc:55:

        // multiple child frames may send the same feature to the browser, skip if
// feature has already been measured.
if (features_recorded_.test(static_cast<size_t>(feature)))
continue;
UMA_HISTOGRAM_ENUMERATION(internal::kFeaturesHistogramName, feature,


actcd19/main/g/grpc/grpc_1.16.1-1/src/core/ext/transport/cronet/transport/cronet_transport.cc:1252:

          uint8_t* dst_p = GRPC_SLICE_START_PTR(read_data_slice);
memcpy(dst_p, stream_state->rs.read_buffer,
static_cast<size_t>(stream_state->rs.length_field));
null_and_maybe_free_read_buffer(s);
/* Clean up read_slice_buffer in case there is unread data. */


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

      const int kSampleRateHz = 8000;
const size_t kPayloadLengthSamples =
static_cast<size_t>(10 * kSampleRateHz / 1000); // 10 ms.
const size_t kPayloadLengthBytes = kPayloadLengthSamples;
uint8_t payload[kPayloadLengthBytes] = {0};


actcd19/main/i/ignition-common/ignition-common_1.1.1-1/src/tiny_obj_loader.h:1989:

          }

tag.stringValues.resize(static_cast<size_t>(ts.num_strings));
for (size_t i = 0; i < static_cast<size_t>(ts.num_strings); ++i) {
std::stringstream ss;


actcd19/main/w/wesnoth-1.14/wesnoth-1.14_1.14.5-1/src/units/drawer.cpp:389:

    	}

if(height > static_cast<size_t>(bar_loc.h)) {
height = bar_loc.h;
}


actcd19/main/g/golang-github-google-certificate-transparency/golang-github-google-certificate-transparency_0.0~git20160709.0.0f6e3d1~ds1-1/cpp/log/cluster_state_controller_test.cc:632:

      {
vector<ClusterNodeState> fresh(controller_.GetFreshNodes());
EXPECT_EQ(static_cast<size_t>(0),
fresh.size()); // no STH yet - everyone is stale.
}


actcd19/main/r/rocksdb/rocksdb_5.17.2-3/env/mock_env.cc:121:

      Status Write(uint64_t offset, const Slice& data) {
MutexLock lock(&mutex_);
size_t offset_ = static_cast<size_t>(offset);
if (offset + data.size() > data_.size()) {
data_.resize(offset_ + data.size());


actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/content/browser/webrtc/webrtc_local_event_log_manager.cc:118:

                                                   const std::string& output) {
DCHECK_LE(output.length(),
static_cast<size_t>(std::numeric_limits<int>::max()));

auto it = log_files_.find(PeerConnectionKey(render_process_id, lid));


actcd19/main/q/qt3d-opensource-src/qt3d-opensource-src_5.10.1+dfsg-5/src/3rdparty/assimp/code/IFCUtil.cpp:195:

        std::vector<unsigned int>::const_iterator begin = vertcnt.begin()+ofs, end = vertcnt.end(),  iit;
for(iit = begin; iit != end; ++iit) {
max_vcount = std::max(max_vcount,static_cast<size_t>(*iit));
}


actcd19/main/c/chromium/chromium_72.0.3626.121-1/third_party/blink/renderer/core/editing/commands/editor_command.cc:1783:

      static_assert(
arraysize(kEditorCommands) + 1 ==
static_cast<size_t>(WebEditingCommandType::kNumberOfCommandTypes),
"must handle all valid WebEditingCommandType");


actcd19/main/libv/libvmime/libvmime_0.9.2-5/src/vmime/utility/encoder/uuEncoder.cpp:76:

    
const size_t maxLineLength =
std::min(getProperties().getProperty <size_t>("maxlinelength", 46), static_cast <size_t>(46));

size_t total = 0;


actcd19/main/libp/libpodofo/libpodofo_0.9.6+dfsg-4/src/base/PdfParser.cpp:882:

    #endif // _WIN32

if( static_cast<size_t>(objID) < m_offsets.size() && !m_offsets[objID].bParsed )
{
// don't scan directly into m_offsets since TXRefEntry structure member sizes change between platforms and compilers


actcd19/main/q/qt3d-opensource-src/qt3d-opensource-src_5.10.1+dfsg-5/src/3rdparty/assimp/code/FBXMeshGeometry.cpp:134:

        for(int index : tempFaces) {
const int absi = index < 0 ? (-index - 1) : index;
if(static_cast<size_t>(absi) >= vertex_count) {
DOMError("polygon vertex index out of range",&PolygonVertexIndex);
}


actcd19/main/c/chromium/chromium_72.0.3626.121-1/mojo/core/broker_posix.cc:42:

        PLOG(ERROR) << "Recvmsg error";
error = true;
} else if (static_cast<size_t>(read_result) != message->data_num_bytes()) {
LOG(ERROR) << "Invalid node channel message";
error = true;


actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/third_party/pdfium/core/fxcrt/bytestring.cpp:563:

      const char* pStr = static_cast<const char*>(
memchr(m_pData->m_String + start, ch, m_pData->m_nDataLength - start));
return pStr ? Optional<size_t>(static_cast<size_t>(pStr - m_pData->m_String))
: Optional<size_t>();
}


actcd19/main/c/cmake/cmake_3.12.3-3/Source/CTest/cmCTestBuildHandler.cxx:236:

      this->CTest->PopulateCustomInteger(mf, "CTEST_CUSTOM_ERROR_PRE_CONTEXT", n);
if (n != -1) {
this->MaxPreContext = static_cast<size_t>(n);
}


actcd19/main/b/bagel/bagel_1.2.2-1/src/util/prim_op.h:563:

    void sort_indices<0,1,2,3,1,1,-1,1>(const std::complex<double>* unsorted, std::complex<double>* sorted,
const int d, const int c, const int b, const int a) {
blas::ax_plus_y_n(-1.0, unsorted, static_cast<size_t>(d)*c*b*a, sorted);
}
template<>


actcd19/main/r/r-cran-tmb/r-cran-tmb_1.7.15-1/inst/include/cppad/local/vec_ad.hpp:674:

    void VecAD_reference<Base>::operator=(const Base &y)
{
size_t i = static_cast<size_t>( Integer(ind_) );
CPPAD_ASSERT_UNKNOWN( i < vec_->length_ );


actcd19/main/libk/libkml/libkml_1.3.0-5/tests/kml/engine/shared_style_parser_observer_test.cc:130:

      ASSERT_FALSE(shared_style_parser_observer->AddChild(document_, style0_));
// Verify that the map was not affected.
ASSERT_EQ(static_cast<size_t>(1), shared_style_map_.size());
kmldom::ObjectPtr object = shared_style_map_[kStyle0Id_];
ASSERT_EQ(kStyle0Id_, object->get_id());


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

          }
TEUCHOS_TEST_FOR_EXCEPTION_CLASS_FUNC
(static_cast<size_t> (tgtWhichVecs.dimension_0 ()) !=
this->getNumVectors (),
std::logic_error, "tgtWhichVecs.dimension_0() = " <<


actcd19/main/q/qtwebkit/qtwebkit_2.3.4.dfsg-10/Source/WebCore/platform/audio/mac/AudioFileReaderMac.cpp:176:

        // Change numberOfFrames64 to destination sample-rate
numberOfFrames64 = numberOfFrames64 * (m_clientDataFormat.mSampleRate / fileSampleRate);
size_t numberOfFrames = static_cast<size_t>(numberOfFrames64);

size_t busChannelCount = mixToMono ? 1 : numberOfChannels;


actcd19/main/libk/libkml/libkml_1.3.0-5/tests/kml/base/file_test.cc:49:

      ASSERT_FALSE(file_data.empty());
// doc.kmz is 332 bytes.
ASSERT_EQ(static_cast<size_t>(332), file_data.size());
}


actcd19/main/w/wabt/wabt_1.0.8-1/src/stream.cc:135:

    
ssize_t bytes = fwrite(data.data(), 1, data.size(), file);
if (bytes < 0 || static_cast<size_t>(bytes) != data.size()) {
ERROR("failed to write %" PRIzd " bytes to %s\n", data.size(),
filename_str.c_str());


actcd19/main/g/gdal/gdal_2.4.0+dfsg-1/ogr/ogrsf_frmts/osm/ogrosmdatasource.cpp:668:

        nCompressSize = ROUND_COMPRESS_SIZE(nCompressSize);
GByte* pabyToWrite = nullptr;
if( nCompressSize >= static_cast<size_t>(SECTOR_SIZE) )
{
nCompressSize = SECTOR_SIZE;


actcd19/main/j/jags/jags_4.3.0-2/src/modules/bugs/functions/testbugsfun.cc:1251:

        // rep(numeric(0), l3) == numeric(0)
vector<double> out8 = veval(_rep, x0, l3);
CPPUNIT_ASSERT_EQUAL(static_cast<size_t>(0), out8.size());

//Check that argument length mismatches are caught


actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/third_party/flatbuffers/src/include/flatbuffers/flexbuffers.h:610:

      template<typename T> bool Mutate(const uint8_t *dest, T t, size_t byte_width,
BitWidth value_width) {
auto fits = static_cast<size_t>(static_cast<size_t>(1U) << value_width) <= byte_width;
if (fits) {
t = flatbuffers::EndianScalar(t);


actcd19/main/a/alljoyn-core-1504/alljoyn-core-1504_15.04b+dfsg.1-3/alljoyn_core/unit_test/NamesTest.cc:91:

    
PadTo(buf, ":1.0.", 256, '0');
EXPECT_EQ(static_cast<size_t>(256), strlen(buf));
EXPECT_FALSE(IsLegalUniqueName(buf));


actcd19/main/libr/libreoffice/libreoffice_6.1.5-1/vcl/qa/cppunit/pdfexport/pdfexport.cxx:246:

        std::vector<vcl::filter::PDFObjectElement*> aPages = aDocument.GetPages();
// The document has one page.
CPPUNIT_ASSERT_EQUAL(static_cast<size_t>(1), aPages.size());
vcl::filter::PDFObjectElement* pResources = aPages[0]->LookupObject("Resources");
CPPUNIT_ASSERT(pResources);


actcd19/main/a/alljoyn-core-1504/alljoyn-core-1504_15.04b+dfsg.1-3/alljoyn_core/unit_test/NamesTest.cc:61:

    
PadTo(buf, ":1.0.", 255, '0');
EXPECT_EQ(static_cast<size_t>(255), strlen(buf));
EXPECT_TRUE(IsLegalUniqueName(buf));


actcd19/main/b/binutils-avr/binutils-avr_2.26.20160125+Atmel3.6.1-4/binutils/gold/i386.cc:3924:

    	object->error(_("failed to match split-stack sequence at "
"section %u offset %0zx"),
shndx, static_cast<size_t>(fnoffset));
return;
}


actcd19/main/a/actor-framework/actor-framework_0.16.3-0.2/libcaf_core/src/ipv6_address.cpp:220:

      if (res.code == pec::success)
return none;
return make_error(res.code, static_cast<size_t>(res.line),
static_cast<size_t>(res.column));
}


actcd19/main/libr/libreoffice/libreoffice_5.4.3-4/sc/qa/unit/ucalc.cxx:243:

        rPool.purge();
CPPUNIT_ASSERT_EQUAL(static_cast<size_t>(0), rPool.getCount());
CPPUNIT_ASSERT_EQUAL(static_cast<size_t>(0), rPool.getCountIgnoreCase());

// Now, compare string and edit text cells.


actcd19/main/libm/libmemcached/libmemcached_1.0.18-4.2/util/string.hpp:50:

    #define util_literal_param_size(X) static_cast<size_t>(sizeof(X) - 1)

#define util_literal_compare_param(X) (static_cast<size_t>((sizeof(X) - 1))), (X)

#define util_string_make_from_cstr(X) (X), ((X) ? strlen(X) : 0)


actcd19/main/s/swift-im/swift-im_3.0.4-1/Swiften/Roster/UnitTest/XMPPRosterControllerTest.cpp:338:

    			CPPUNIT_ASSERT_EQUAL(static_cast<size_t>(1), xmppRoster_->getGroupsForJID(jid2_).size());
CPPUNIT_ASSERT_EQUAL(alicesGroup, xmppRoster_->getGroupsForJID(jid2_)[0]);
CPPUNIT_ASSERT_EQUAL(static_cast<size_t>(1), xmppRoster_->getGroupsForJID(jid3_).size());
CPPUNIT_ASSERT_EQUAL(janesGroup, xmppRoster_->getGroupsForJID(jid3_)[0]);
handler_->reset();


actcd19/main/o/openjfx/openjfx_11.0.2+1-1/modules/javafx.web/src/main/native/Source/WebCore/html/canvas/WebGLProgram.cpp:166:

        GC3Dint numAttribs = 0;
context3d->getProgramiv(object(), GraphicsContext3D::ACTIVE_ATTRIBUTES, &numAttribs);
m_activeAttribLocations.resize(static_cast<size_t>(numAttribs));
for (int i = 0; i < numAttribs; ++i) {
ActiveInfo info;


actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/third_party/webrtc/modules/audio_processing/aec3/render_delay_buffer.cc:299:

      int internal_delay = MaxExternalDelayToInternalDelay(*delay_);
internal_delay_ =
std::min(MaxDelay(), static_cast<size_t>(std::max(internal_delay, 0)));

// Apply the delay to the buffers.


actcd19/main/n/nodejs/nodejs_4.6.1~dfsg-1/deps/v8/src/heap/heap.cc:4048:

    
size_t relocation_offset =
static_cast<size_t>(code->instruction_end() - old_addr);

HeapObject* result;


actcd19/main/w/webkit2gtk/webkit2gtk_2.18.3-1/Tools/TestWebKitAPI/Tests/WTF/StringImpl.cpp:216:

    
// Find the prefix.
EXPECT_EQ(static_cast<size_t>(0), referenceA->findIgnoringASCIICase(StringImpl::createFromLiteral("a").ptr()));
EXPECT_EQ(static_cast<size_t>(0), referenceA->findIgnoringASCIICase(stringFromUTF8("abcé").ptr()));
EXPECT_EQ(static_cast<size_t>(0), referenceA->findIgnoringASCIICase(StringImpl::createFromLiteral("A").ptr()));


actcd19/main/n/nodejs/nodejs_4.6.1~dfsg-1/deps/v8/src/heap/heap.cc:4066:

      // Copy patched rinfo.
CopyBytes(new_code->relocation_start(), reloc_info.start(),
static_cast<size_t>(reloc_info.length()));

// Relocate the copy.


actcd19/main/n/nodejs/nodejs_4.6.1~dfsg-1/.pc/s390.patch/deps/v8/src/heap/heap.cc:4840:

      heap_state.contexts_disposal_rate =
tracer()->ContextDisposalRateInMilliseconds();
heap_state.size_of_objects = static_cast<size_t>(SizeOfObjects());
heap_state.incremental_marking_stopped = incremental_marking()->IsStopped();
heap_state.sweeping_in_progress =


actcd19/main/c/ceph/ceph_12.2.11+dfsg1-2/src/boost/boost/geometry/index/detail/rtree/rstar/redistribute_elements.hpp:426:

            // TODO: awulkiew - get rid of following static_casts?
BOOST_GEOMETRY_INDEX_ASSERT(split_axis < dimension, "unexpected value");
BOOST_GEOMETRY_INDEX_ASSERT(split_corner == static_cast<size_t>(min_corner) || split_corner == static_cast<size_t>(max_corner), "unexpected value");
BOOST_GEOMETRY_INDEX_ASSERT(parameters.get_min_elements() <= split_index && split_index <= parameters.get_max_elements() - parameters.get_min_elements() + 1, "unexpected value");


actcd19/main/libr/libreoffice/libreoffice_6.1.5-1/xmlsecurity/qa/unit/pdfsigning/pdfsigning.cxx:506:

            if (OUString(rName) == "tdf107149.pdf")
// This failed, page list was empty.
CPPUNIT_ASSERT_EQUAL(static_cast<size_t>(1), aDocument.GetPages().size());
}
}


actcd19/main/q/qtcreator/qtcreator_4.8.2-1/src/plugins/qmlprofiler/qmlprofilermodelmanager.cpp:483:

            m_types.push_back(QmlEventType());
}
QTC_ASSERT(index <= static_cast<size_t>(std::numeric_limits<int>::max()),
return std::numeric_limits<int>::max());
return static_cast<int>(index);


actcd19/main/p/psi4/psi4_1.2.1-2/psi4/src/psi4/ambit_interface/integrals.cc:53:

    
if (settings::rank == 0) {
size_t row = static_cast<size_t>(integral.basis1()->nbf());
size_t col = static_cast<size_t>(integral.basis2()->nbf());


actcd19/main/j/juce/juce_5.4.1+really5.4.1~repack-3/modules/juce_cryptography/encryption/juce_BlowFish.cpp:295:

    

if (newSize >= 0)
data.setSize (static_cast<size_t> (newSize));
else
jassertfalse;


actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/third_party/webrtc/test/fuzzers/audio_processing_fuzzer.cc:31:

          return static_cast<size_t>(Rate::kSampleRate16kHz);
case 2:
return static_cast<size_t>(Rate::kSampleRate32kHz);
default:
return static_cast<size_t>(Rate::kSampleRate48kHz);


actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/components/viz/service/display/gl_renderer_copier.cc:879:

      auto* const gl = context_provider_->ContextGL();
size_t i = 0;
for (; i < static_cast<size_t>(CacheEntry::kReadbackFramebuffer); ++i) {
if (entry->object_names[i] != 0)
gl->DeleteTextures(1, &(entry->object_names[i]));


actcd19/main/t/trilinos/trilinos_12.12.1-7/packages/tpetra/core/test/ImportExport/ImportExport_UnitTests.cpp:308:

          TEST_EQUALITY_CONST( importer->getTargetMap() == tmap, true );
TEST_EQUALITY( importer->getNumSameIDs(), (myImageID == 0 ? 1 : 0) );
TEST_EQUALITY( importer->getNumPermuteIDs(), static_cast<size_t>(myImageID == 0 ? 0 : 1) );
TEST_EQUALITY( importer->getNumExportIDs(), (myImageID == 0 || myImageID == numImages - 1 ? 1 : 2) );
TEST_EQUALITY( importer->getNumRemoteIDs(), (myImageID == 0 || myImageID == numImages - 1 ? 1 : 2) );