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/p/pbbam/pbbam_0.19.0+dfsg-4/src/pugixml/pugixml.cpp:5443:

    	PUGI__FN size_t xml_node::hash_value() const
{
return static_cast<size_t>(reinterpret_cast<uintptr_t>(_root) / sizeof(xml_node_struct));
}


actcd19/main/libr/libreoffice/libreoffice_5.4.3-4/sw/qa/core/uwriter.cxx:387:

        CPPUNIT_ASSERT_EQUAL(static_cast<sal_Int32>(20),
aModelToViewHelper.getFootnotePositions()[1]);
CPPUNIT_ASSERT_EQUAL(static_cast<size_t>(0),
aModelToViewHelper.getFieldPositions().size());
}


actcd19/main/s/s3fs-fuse/s3fs-fuse_1.84-1/src/fdcache.cpp:824:

        }
// set original headers and set size.
size_t new_size = (0 <= size ? static_cast<size_t>(size) : size_orgmeta);
if(pmeta){
orgmeta = *pmeta;


actcd19/main/s/s3fs-fuse/s3fs-fuse_1.84-1/src/fdcache.cpp:367:

          return false;
}
if(0 != size && static_cast<size_t>(start + size) <= static_cast<size_t>((*iter)->next())){
break;
}


actcd19/main/t/tbb/tbb_2018~U6-4/include/tbb/internal/_tbb_hash_compare_impl.h:66:

    template<typename T>
inline size_t tbb_hasher( const T& t ) {
return static_cast<size_t>( t ) * internal::hash_multiplier;
}
template<typename P>


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

        ScDocument& rLoadedDoc = xDocSh->GetDocument();
pDPs = rLoadedDoc.GetDPCollection();
CPPUNIT_ASSERT_EQUAL(static_cast<size_t>(1), pDPs->GetCount());
const ScDPObject* pDPObj = &(*pDPs)[0];
CPPUNIT_ASSERT(pDPObj);


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

        for (int y = validData.getBottom(); y < dim.y; y++ ) {
uchar8* dst_pos = getData(0, y);
memcpy(dst_pos, src_pos, static_cast<size_t>(dim.x) * bpp);
}
}


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

            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/webrtc/rtc_base/stringutils.h:225:

    }
inline int ascicmp(const wchar_t* s1, const char* s2) {
return ascii_string_compare(s1, s2, static_cast<size_t>(-1), tolowercase);
}
inline int ascncmp(const wchar_t* s1, const char* s2, size_t n) {


actcd19/main/c/chromium/chromium_72.0.3626.121-1/third_party/blink/renderer/platform/image-decoders/gif/gif_image_decoder.cc:209:

      } else {
required_previous_frame_index =
static_cast<size_t>(frame_info.fRequiredFrame);
}
frame.SetRequiredPreviousFrameIndex(required_previous_frame_index);


actcd19/main/s/swift-im/swift-im_3.0.4-1/Swiften/Parser/PayloadParsers/UnitTest/FormParserTest.cpp:213:

    
item = items[1];
CPPUNIT_ASSERT_EQUAL(static_cast<size_t>(4), item.size());

CPPUNIT_ASSERT_EQUAL(std::string("Romeo"), item[0]->getValues()[0]);


actcd19/main/c/cmtk/cmtk_3.3.1p1+dfsg-1/libs/System/cmtkConsole.cxx:115:

        remaining.erase( 0, breakAt+1 );
currentIndent = margin;
length = static_cast<size_t>( std::max<int>( 1, actualWidth - currentIndent ) ) - 1;
}


actcd19/main/p/paraview/paraview_5.4.1+dfsg4-3.1/VTK/Rendering/OpenGL/vtkOpenGLState.cxx:275:

        static_cast<size_t>(this->MaxDrawBuffers));
i = 0;
while (i < static_cast<size_t>(this->MaxDrawBuffers))
{
glGetIntegerv(vtkgl::DRAW_BUFFER0+i, &(*this->DrawBuffers)[i]);


actcd19/main/libr/libreoffice/libreoffice_5.4.3-4/sc/inc/address.hxx:443:

        // > 2^8 AND sheet > 2^8 so we won't have too many collisions.
if (nRow <= 0xffff)
return (static_cast<size_t>(nTab) << 24) ^
(static_cast<size_t>(nCol) << 16) ^ static_cast<size_t>(nRow);
else


actcd19/main/t/trilinos/trilinos_12.12.1-7/packages/intrepid/src/Shared/Intrepid_RealSpaceToolsDef.hpp:1689:

    	}else if(inArray1Rank==3){
for (size_t i=0; i<static_cast<size_t>(inArray1.dimension(0)); i++)
for (size_t j=0; j<static_cast<size_t>(inArray1.dimension(1)); j++)
for (size_t k=0; k<static_cast<size_t>(inArray1.dimension(2)); k++){
diffArrayWrap(i,j,k) = inArray1Wrap(i,j,k)-inArray2Wrap(i,j,k);


actcd19/main/g/geany/geany_1.34.1-1/scintilla/src/CellBuffer.cxx:166:

    	// Have to test that there is room for 2 more actions in the array
// as two actions may be created by the calling function
if (static_cast<size_t>(currentAction) >= (actions.size() - 2)) {
// Run out of undo nodes so extend the array
actions.resize(actions.size() * 2);


actcd19/main/v/vtk7/vtk7_7.1.1+dfsg1-12/IO/Infovis/vtkTulipReader.cxx:515:

            }
vertArr->Delete();
if (static_cast<size_t>(edgeArr->GetNumberOfTuples()) == edgeIdMap.size())
{
builder->GetEdgeData()->AddArray(edgeArr);


actcd19/main/g/grpc/grpc_1.16.1-1/test/core/end2end/tests/bad_ping.cc:347:

      op->reserved = nullptr;
op++;
error = grpc_call_start_batch(s, ops, static_cast<size_t>(op - ops), tag(102),
nullptr);
GPR_ASSERT(GRPC_CALL_OK == error);


actcd19/main/p/poco/poco_1.9.0-5/Foundation/src/utils.h:269:

        // Make sure nobody managed to add a 0-character to the
// buffer while building the string.
ASSERT(strlen(buffer_.start()) == static_cast<size_t>(position_));
position_ = -1;
ASSERT(is_finalized());


actcd19/main/libr/libreoffice/libreoffice_6.0.6~rc1-1/sw/qa/extras/tiledrendering/tiledrendering.cxx:1230:

        comphelper::dispatchCommand(".uno:Undo", {});
Scheduler::ProcessEventsToIdle();
CPPUNIT_ASSERT_EQUAL(static_cast<size_t>(1), rUndoManager.GetUndoActionCount());

// But the same is allowed in repair mode.


actcd19/main/m/mariadb-10.3/mariadb-10.3_10.3.12-2/storage/rocksdb/rocksdb/table/partitioned_filter_block.cc:330:

      prefetch_buffer.reset(new FilePrefetchBuffer());
s = prefetch_buffer->Prefetch(file.get(), prefetch_off,
static_cast<size_t>(prefetch_len));

// After prefetch, read the partitions one by one


actcd19/main/c/chromium/chromium_72.0.3626.121-1/third_party/blink/renderer/core/input/pointer_event_manager.cc:33:

    
size_t ToPointerTypeIndex(WebPointerProperties::PointerType t) {
return static_cast<size_t>(t);
}
bool HasPointerEventListener(const EventHandlerRegistry& registry) {


actcd19/main/o/openjfx/openjfx_11.0.2+1-1/modules/javafx.web/src/main/native/Source/WebCore/platform/graphics/filters/FEComponentTransfer.cpp:151:

        ASSERT_WITH_SECURITY_IMPLICATION(static_cast<size_t>(m_redFunction.type) < WTF_ARRAY_LENGTH(callEffect));
ASSERT_WITH_SECURITY_IMPLICATION(static_cast<size_t>(m_greenFunction.type) < WTF_ARRAY_LENGTH(callEffect));
ASSERT_WITH_SECURITY_IMPLICATION(static_cast<size_t>(m_blueFunction.type) < WTF_ARRAY_LENGTH(callEffect));
ASSERT_WITH_SECURITY_IMPLICATION(static_cast<size_t>(m_alphaFunction.type) < WTF_ARRAY_LENGTH(callEffect));


actcd19/main/l/lammps/lammps_0~20180510.gitaa1d815fe-4/lib/kokkos/core/src/Kokkos_CopyViews.hpp:1606:

          n0 == static_cast<size_t> (v.extent(0)) &&
n1 == static_cast<size_t> (v.extent(1)) &&
n2 == static_cast<size_t> (v.extent(2)) &&
n3 == static_cast<size_t> (v.extent(3)) &&
n4 == static_cast<size_t> (v.extent(4))) {


actcd19/main/w/widelands/widelands_19+repack-6/src/network/network.cc:192:

    		return false;

return queue_.size() >= static_cast<size_t>(size);
}


actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/third_party/webrtc/p2p/stunprober/stunprober.cc:170:

    
num_request_sent_++;
RTC_DCHECK(static_cast<size_t>(num_request_sent_) <= server_ips_.size());
}


actcd19/main/l/lammps/lammps_0~20181211.gitad1b1897d+dfsg1-1/src/MANYBODY/pair_lcbop.cpp:934:

    double PairLCBOP::F_conj( double N_ij, double N_ji, double N_conj_ij, double *dFN_ij, double *dFN_ji, double *dFN_ij_conj ) {
size_t N_ij_int = MIN( static_cast<size_t>( floor( N_ij ) ), 2 ); // 2 is the highest number of field
size_t N_ji_int = MIN( static_cast<size_t>( floor( N_ji ) ), 2 ); // cast to suppress warning
double x = N_ij - N_ij_int;
double y = N_ji - N_ji_int;


actcd19/main/e/emscripten/emscripten_1.22.1-1/system/lib/libcxx/debug.cpp:190:

        if (__ibeg_ != __iend_)
{
size_t hi = hash<void*>()(__i) % static_cast<size_t>(__iend_ - __ibeg_);
__i_node* p = __ibeg_[hi];
if (p != nullptr)


actcd19/main/c/chromium/chromium_72.0.3626.121-1/chrome/browser/resource_coordinator/tab_load_tracker.cc:154:

        DCHECK_NE(
0u,
ui_tab_state_counts_[static_cast<size_t>(it->second.loading_state)]);
--ui_tab_state_counts_[static_cast<size_t>(it->second.loading_state)];
}


actcd19/main/g/gromacs/gromacs_2019-2/src/gromacs/restraint/restraintmdmodule.cpp:108:

                                            t);
RVec b = sites_[i + 1].centerOfMass(cr,
static_cast<size_t>(mdatoms.homenr),
x,
t);


actcd19/main/q/qpdf/qpdf_8.4.0-2/libqpdf/QPDF_encryption.cc:133:

    pad_or_truncate_password_V4(std::string const& password, char k1[key_bytes])
{
int password_bytes = std::min(static_cast<size_t>(key_bytes),
password.length());
int pad_bytes = key_bytes - password_bytes;


actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/ui/gfx/render_text_unittest.cc:4455:

      test_api()->EnsureLayout();
CFIndex glyph_count = CTLineGetGlyphCount(GetCoreTextLine());
EXPECT_GT(text.size(), static_cast<size_t>(glyph_count));
EXPECT_NE(0, glyph_count);
}


actcd19/main/m/mongodb/mongodb_3.4.18-2/src/mongo/base/string_data.h:278:

        if (x == 0)
return std::string::npos;
return static_cast<size_t>(static_cast<const char*>(x) - _data);
}


actcd19/main/k/kido/kido_0.1.0+dfsg-6/kido/dynamics/Skeleton.cpp:2017:

      size_t dof = mSkelCache.mDofs.size();
assert(static_cast<size_t>(mSkelCache.mM.cols()) == dof
&& static_cast<size_t>(mSkelCache.mM.rows()) == dof);
if(dof == 0)
{


actcd19/main/z/zeroc-ice/zeroc-ice_3.7.2-4/cpp/src/Ice/WSTransceiver.cpp:299:

                        // Enlarge the buffer and try to read more.
//
const size_t oldSize = static_cast<size_t>(_readBuffer.i - _readBuffer.b.begin());
if(oldSize + 1024 > _instance->messageSizeMax())
{


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

    DEFINE_CHECK_EQ(static_cast<size_t>(RUNTIME_SAVE_REFS_AND_ARGS_METHOD_OFFSET), (static_cast<size_t>(art::Runtime::GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveRefsAndArgs))))
#define RUNTIME_SAVE_EVERYTHING_METHOD_OFFSET 0x18
DEFINE_CHECK_EQ(static_cast<size_t>(RUNTIME_SAVE_EVERYTHING_METHOD_OFFSET), (static_cast<size_t>(art::Runtime::GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveEverything))))
#define THREAD_FLAGS_OFFSET 0
DEFINE_CHECK_EQ(static_cast<int32_t>(THREAD_FLAGS_OFFSET), (static_cast<int32_t>(art::Thread:: ThreadFlagsOffset<art::kRuntimePointerSize>().Int32Value())))


actcd19/main/f/firefox/firefox_65.0.1-1/widget/gtk/nsNativeThemeGTK.cpp:175:

                                  GtkWidgetState* aWidgetState) {
MOZ_ASSERT(static_cast<size_t>(aAppearance) <
static_cast<size_t>(mozilla::StyleAppearance::Count));
uint16_t key = GetWidgetStateKey(aAppearance, aWidgetState);
return (aSafeVector[key >> 3] & (1 << (key & 7))) != 0;


actcd19/main/libr/libreoffice/libreoffice_6.1.5-1/sc/source/core/data/dpresfilter.cxx:212:

    {
const sheet::DataPilotFieldFilter* p = rFilters.getConstArray();
const sheet::DataPilotFieldFilter* pEnd = p + static_cast<size_t>(rFilters.getLength());
const MemberNode* pMember = mpRoot.get();
for (; p != pEnd; ++p)


actcd19/main/a/android-platform-external-boringssl/android-platform-external-boringssl_8.1.0+r23-2/src/ssl/ssl_test.cc:2232:

      }

len = static_cast<size_t>(len1 + len2);
#endif


actcd19/main/a/alljoyn-core-1604/alljoyn-core-1604_16.04a+dfsg.1-3/alljoyn_core/unit_test/SecurityACLTest.cc:839:

            Message replyMsg(peer2Bus);
EXPECT_EQ(ER_OK, proxy.MethodCall(interfaceName, "ping", NULL, static_cast<size_t>(0), replyMsg));
EXPECT_EQ(ER_OK, proxy.MethodCall(interfaceName, "bing", NULL, static_cast<size_t>(0), replyMsg));
EXPECT_EQ(ER_OK, proxy.MethodCall(interfaceName, "king", NULL, static_cast<size_t>(0), replyMsg));
EXPECT_EQ(ER_PERMISSION_DENIED, proxy.MethodCall(interfaceName, "sing", NULL, static_cast<size_t>(0), replyMsg));


actcd19/main/libr/libreoffice/libreoffice_6.1.5-1/sc/source/core/tool/token.cxx:1253:

                                {
// try to resolve cache index to sheet name.
size_t nCacheId = static_cast< size_t >( aApiCRef.Reference1.Sheet );
OUString aTabName = pExtRef->getCacheTableName( nFileId, nCacheId );
if( !aTabName.isEmpty() )


actcd19/main/q/qtwebkit-opensource-src/qtwebkit-opensource-src_5.212.0~alpha2-5/Source/ThirdParty/ANGLE/src/libGLESv2/entry_points_gles_2_0_ext.cpp:1049:

    
if (!rx::IsUnsignedAdditionSafe(offsetSize, lengthSize) ||
offsetSize + lengthSize > static_cast<size_t>(buffer->getMapLength()))
{
context->recordError(Error(GL_INVALID_VALUE));


actcd19/main/libr/libreoffice/libreoffice_5.4.3-4/sw/source/filter/ww8/ww8par.cxx:6482:

        if (nLvl)
--nLvl;
if (nLvl < 0 || static_cast<size_t>(nLvl) >= m_aApos.size())
return false;
return m_aApos[nLvl];


actcd19/main/p/psi4/psi4_1.0-1/src/lib/libtrans/integraltransform_tpdm_unrestricted.cc:95:

        for(int h=0; h < nirreps_; h++) {
if(J1.params->coltot[h] && J1.params->rowtot[h]) {
memFree = static_cast<size_t>(dpd_memfree() - J1.params->coltot[h] - K.params->coltot[h]);
rowsPerBucket = memFree/(2 * J1.params->coltot[h]);
if(rowsPerBucket > J1.params->rowtot[h]) rowsPerBucket = (size_t) J1.params->rowtot[h];


actcd19/main/c/chromium/chromium_72.0.3626.121-1/media/renderers/video_resource_updater.cc:992:

    
const size_t resource_bit_depth =
static_cast<size_t>(viz::BitsPerPixel(plane_resource_format));

// Data downshifting is needed if the resource bit depth is not enough.


actcd19/main/libr/libreoffice/libreoffice_6.1.5-1/sc/source/core/data/compressedarray.cxx:189:

                }

if (nInsert < static_cast<size_t>(nMaxAccess+1))
{ // insert or append new entry
if (nInsert <= nCount)


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

                              ">>> ERROR (Intrepid::CellTools::validateArguments_setJacobian): rank = 3 required for jacobian array");

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


actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/v8/src/heap/spaces.h:1063:

            : start(static_cast<Address>(start_arg)), size(size_arg) {
DCHECK(IsAddressAligned(start, MemoryChunk::kAlignment));
DCHECK(size >= static_cast<size_t>(Page::kPageSize));
}


actcd19/main/libr/libreoffice/libreoffice_6.0.6~rc1-1/svtools/source/control/valueset.cxx:1584:

    {
const size_t nVisibleBegin = static_cast<size_t>(mnFirstLine)*mnCols;
const size_t nVisibleEnd = nVisibleBegin + static_cast<size_t>(mnVisLines)*mnCols;

// Check if the item is inside the range of the displayed ones,


actcd19/main/c/chromium/chromium_72.0.3626.121-1/third_party/breakpad/breakpad/src/client/linux/minidump_writer/cpu_set.h:80:

          // Find start and size of current item.
const char* item = p;
size_t item_len = static_cast<size_t>(p_end - p);
const char* item_next =
static_cast<const char*>(my_memchr(p, ',', item_len));


actcd19/main/libr/libreoffice/libreoffice_6.1.5-1/svl/qa/unit/svl.cxx:376:

        // This shouldn't purge anything.
aPool.purge();
CPPUNIT_ASSERT_EQUAL(static_cast<size_t>(4), aPool.getCount());
CPPUNIT_ASSERT_EQUAL(static_cast<size_t>(2), aPool.getCountIgnoreCase());


actcd19/main/d/dnsdist/dnsdist_1.3.3-3/test-dnsdist_cc.cc:540:

      /* And now we add our own ECS */
BOOST_CHECK(handleEDNSClientSubnet(dq, &ednsAdded, &ecsAdded, false));
BOOST_CHECK_EQUAL(static_cast<size_t>(dq.len), query.size());
BOOST_CHECK_EQUAL(ednsAdded, false);
BOOST_CHECK_EQUAL(ecsAdded, false);


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

          (this->isGloballyIndexed () &&
this->k_rowPtrs_.dimension_0 () != 0 &&
(static_cast<size_t> (this->k_rowPtrs_.dimension_0 ()) != static_cast<size_t> (lclNumRows + 1) ||
this->k_rowPtrs_(lclNumRows) != static_cast<size_t> (this->k_gblInds1D_.dimension_0 ())),
std::logic_error, "If k_rowPtrs_ has nonzero size and "


actcd19/main/g/gdal/gdal_2.4.0+dfsg-1/frmts/gta/gtadataset.cpp:844:

            if( pBlock == nullptr )
{
pBlock = VSI_MALLOC2_VERBOSE( static_cast<size_t>(oHeader.element_size()), nBlockXSize );
if( pBlock == nullptr )
{


actcd19/main/t/thunderbird/thunderbird_60.5.1-1/security/sandbox/linux/Sandbox.cpp:559:

      fprog.filter = flatProgram.get();
fprog.len = static_cast<unsigned short>(programLen);
MOZ_RELEASE_ASSERT(static_cast<size_t>(fprog.len) == programLen);

const SandboxInfo info = SandboxInfo::Get();


actcd19/main/c/chromium/chromium_72.0.3626.121-1/third_party/webrtc/modules/video_coding/codecs/test/video_codec_unittest.cc:107:

      if (!WaitForEncodedFrames(&frames, &codec_specific_infos))
return false;
EXPECT_EQ(frames.size(), static_cast<size_t>(1));
EXPECT_EQ(frames.size(), codec_specific_infos.size());
*frame = frames[0];


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

        if (label != nullptr && bufSize > 0)
{
writeLength = std::min(static_cast<size_t>(bufSize) - 1, objectLabel.length());
std::copy(objectLabel.begin(), objectLabel.begin() + writeLength, label);
label[writeLength] = '\0';


actcd19/main/p/psi-plus/psi-plus_1.4.554-1/iris/tools/nettool/main.cpp:227:

            {
QByteArray buf = list[0].rawData();
if(fwrite(buf.data(), buf.size(), 1, stdout) != static_cast<size_t>(buf.size()))
{
/* FIXME:


actcd19/main/j/juce/juce_5.4.1+really5.4.1~repack-3/modules/juce_dsp/processors/juce_FIRFilter_test.cpp:185:

                filter.prepare (spec);


reference<SampleType, NumericType> (fir.getChannelPointer (0), static_cast<size_t> (size),
input.getChannelPointer (0), ref.getChannelPointer (0), n);


actcd19/main/o/owncloud-client/owncloud-client_2.3.3+dfsg-2/src/3rdparty/libcrashreporter-qt/3rdparty/breakpad/common/dwarf/dwarf2reader.cc:501:

        }

const Abbrev& abbrev = abbrevs_->at(static_cast<size_t>(abbrev_num));
const enum DwarfTag tag = abbrev.tag;
if (!handler_->StartDIE(absolute_offset, tag)) {


actcd19/main/libr/libreoffice/libreoffice_5.4.3-4/jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx:564:

                importsVA < sections->VirtualAddress + sections->SizeOfRawData)
{
VAtoPhys = static_cast<size_t>(sections->PointerToRawData) - static_cast<size_t>(sections->VirtualAddress);
break;
}


actcd19/main/c/chromium/chromium_72.0.3626.121-1/third_party/angle/src/libANGLE/renderer/d3d/FramebufferD3D.cpp:385:

            colorAttachmentsForRender.empty() && activeProgramOutputs.any())
{
static_assert(static_cast<size_t>(activeProgramOutputs.size()) <= 32,
"Size of active program outputs should less or equal than 32.");
const GLuint activeProgramLocation = static_cast<GLuint>(


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

    
// No buffering should have been triggered due to speed.
EXPECT_EQ(static_cast<size_t>(limits::kMaxVideoFrames),
renderer_->min_buffered_frames_for_testing());
EXPECT_EQ(static_cast<size_t>(limits::kMaxVideoFrames),


actcd19/main/e/eclipse-titan/eclipse-titan_6.5.0-1/compiler2/string.cc:65:

          (Realloc(val_ptr, MEMORY_SIZE(val_ptr->n_chars + n)));
// check whether the source buffer s is (part of) our existing buffer
if (offset >= 0 && static_cast<size_t>(offset) < val_ptr->n_chars)
memcpy(val_ptr->chars_ptr + val_ptr->n_chars,
val_ptr->chars_ptr + offset, n);


actcd19/main/a/ace/ace_6.4.5+dfsg-1/tests/Proactor_UDP_Test.cpp:2081:

          {
case 'x': // xfer limit
xfer_limit = static_cast<size_t> (ACE_OS::atoi (get_opt.opt_arg ()));
if (xfer_limit == 0)
xfer_limit = 1; // Bare minimum.


actcd19/main/p/pcl/pcl_1.8.1+dfsg1-1/recognition/include/pcl/recognition/quantized_map.h:135:

    
width_ = static_cast<size_t> (width);
height_ = static_cast<size_t> (height);

int num_of_elements;


actcd19/main/t/thunderbird/thunderbird_60.5.1-1/media/libvpx/libvpx/third_party/libwebm/mkvmuxer/mkvmuxer.cc:1374:

    
uint8_t* new_private_data =
new (std::nothrow) uint8_t[static_cast<size_t>(data_length)];
if (new_private_data == NULL) {
return false;


actcd19/main/z/zeroc-ice/zeroc-ice_3.6.4-1+buster/cpp/src/Ice/WSTransceiver.cpp:310:

                        // Enlarge the buffer and try to read more.
//
const size_t oldSize = static_cast<size_t>(_readBuffer.i - _readBuffer.b.begin());
if(oldSize + 1024 > _instance->messageSizeMax())
{


actcd19/main/m/mongodb/mongodb_3.4.18-2/src/mongo/dbtests/basictests.cpp:94:

            string s = base64::encode(data, len);
string out = base64::decode(s);
ASSERT_EQUALS(out.size(), static_cast<size_t>(len));
bool broke = false;
for (int i = 0; i < len; i++) {


actcd19/main/c/cpprest/cpprest_2.10.10-1/Release/src/streams/fileio_winrt.cpp:654:

        _file_info_impl* fInfo = static_cast<_file_info_impl*>(info);

return _seekrdpos_fsb(info, static_cast<size_t>(fInfo->m_stream->Size / char_size + offset), char_size);
}


actcd19/main/r/r-cran-lhs/r-cran-lhs_1.0.1-1/src/ak3.cpp:199:

                            }

for (size_t m1 = 1; m1 < q && col < static_cast<size_t>(ncol); m1++) /* x + my + nz + b(m) */
{
for (size_t m2 = 1; m2 < q && col < static_cast<size_t>(ncol); m2++)


actcd19/main/g/gnss-sdr/gnss-sdr_0.0.10-4/src/algorithms/tracking/gnuradio_blocks/dll_pll_veml_tracking_fpga.cc:1114:

        if (reinterpret_cast<int64_t *>(matfp) != nullptr)
{
size_t dims[2] = {1, static_cast<size_t>(num_epoch)};
matvar = Mat_VarCreate("abs_VE", MAT_C_SINGLE, MAT_T_SINGLE, 2, dims, abs_VE, 0);
Mat_VarWrite(matfp, matvar, MAT_COMPRESSION_ZLIB); // or MAT_COMPRESSION_NONE


actcd19/main/z/zeroc-ice/zeroc-ice_3.6.4-1+buster/cpp/src/Ice/ThreadPool.cpp:462:

            stackSize = 0;
}
const_cast<size_t&>(_stackSize) = static_cast<size_t>(stackSize);

const_cast<bool&>(_hasPriority) = properties->getProperty(_prefix + ".ThreadPriority") != "";


actcd19/main/c/ceph/ceph_12.2.11+dfsg1-2/src/rocksdb/util/coding.h:308:

        return false;
} else {
*input = Slice(q, static_cast<size_t>(limit - q));
return true;
}


actcd19/main/p/paraview/paraview_5.4.1+dfsg4-3.1/VTK/Filters/General/vtkContourTriangulator.cxx:929:

    
// Do the points have different pointIds?
idx1 = static_cast<size_t>(vertIdx);
unique = (poly[idx2] != poly[idx1]);


actcd19/main/c/chromium/chromium_72.0.3626.121-1/net/disk_cache/blockfile/entry_impl.cc:802:

    
++key_len; // We store a trailing \0 on disk that we read back below.
if (!offset && key_file->GetLength() != static_cast<size_t>(key_len))
return std::string();


actcd19/main/w/wesnoth-1.14/wesnoth-1.14_1.14.5-1/src/editor/palette/editor_palettes.cpp:164:

    	}

return static_cast<size_t>(-1);
}


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

        const RDTimestep* ts = static_cast<RDTimestep*>(m_timesteps[key.timestep]);
return UINTVECTOR3(ts->m_vvaBrickSize[iLOD]
[static_cast<size_t>(key.brick[0])]
[static_cast<size_t>(key.brick[1])]
[static_cast<size_t>(key.brick[2])]);


actcd19/main/t/trilinos/trilinos_12.12.1-7/packages/stokhos/src/sacado/kokkos/pce/belos/Belos_TpetraAdapter_UQ_PCE.hpp:581:

    #ifdef HAVE_TPETRA_DEBUG
TEUCHOS_TEST_FOR_EXCEPTION(
inNumVecs < static_cast<size_t> (index.size ()), std::invalid_argument,
"Belos::MultiVecTraits::SetBlock(A,index,mv): 'index' argument must "
"have no more entries as the number of columns in the input MultiVector"


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

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


actcd19/main/l/llvm-toolchain-7/llvm-toolchain-7_7.0.1-6/lldb/source/Core/IOHandler.cpp:1707:

    
case KEY_RETURN:
if (static_cast<size_t>(selected_idx) < num_submenus) {
if (submenus[selected_idx]->Action() == MenuActionResult::Quit)
return eQuitApplication;


actcd19/main/t/thunderbird/thunderbird_60.5.1-1/media/webrtc/trunk/webrtc/modules/audio_coding/neteq/expand.cc:469:

      size_t correlation_lags = static_cast<size_t>(
WEBRTC_SPL_ABS_W16((distortion_lag-correlation_lag)) + 1);
assert(correlation_lags <= static_cast<size_t>(99 * fs_mult + 1));

for (size_t channel_ix = 0; channel_ix < num_channels_; ++channel_ix) {


actcd19/main/g/gcc-arm-none-eabi/gcc-arm-none-eabi_7-2018-q2-5/libstdc++-v3/config/locale/gnu/codecvt_members.cc:274:

    		__conv = mbrtowc(0, __from, __end - __from,
&__tmp_state);
if (__conv == static_cast<size_t>(-1)
|| __conv == static_cast<size_t>(-2))
break;


actcd19/main/c/chromium/chromium_72.0.3626.121-1/net/websockets/websocket_deflate_stream_test.cc:813:

      EXPECT_TRUE(frames[1]->header.final);
EXPECT_FALSE(frames[1]->header.reserved1);
EXPECT_EQ(0u, static_cast<size_t>(frames[1]->header.payload_length));
EXPECT_EQ(original_data, ToString(frames[0]) + ToString(frames[1]));
}


actcd19/main/f/firefox-esr/firefox-esr_60.5.1esr-1/security/sandbox/linux/SandboxFilter.cpp:550:

        auto path = reinterpret_cast<const char*>(aArgs.args[1]);
auto buf = reinterpret_cast<char*>(aArgs.args[2]);
auto size = static_cast<size_t>(aArgs.args[3]);
if (fd != AT_FDCWD && path[0] != '/') {
SANDBOX_LOG_ERROR("unsupported fd-relative readlinkat(%d, %s, %p, %u)",


actcd19/main/g/grpc/grpc_1.16.1-1/test/core/end2end/tests/call_host_override.cc:196:

      op->reserved = nullptr;
op++;
error = grpc_call_start_batch(s, ops, static_cast<size_t>(op - ops), tag(102),
nullptr);
GPR_ASSERT(error == GRPC_CALL_OK);


actcd19/main/n/nodejs/nodejs_4.6.1~dfsg-1/deps/v8/src/compiler/pipeline-statistics.cc:54:

          phase_name_(NULL) {
if (info->has_shared_info()) {
source_size_ = static_cast<size_t>(info->shared_info()->SourceSize());
SmartArrayPointer<char> name =
info->shared_info()->DebugName()->ToCString();


actcd19/main/c/chewing-editor/chewing-editor_0.1.1-1/gmock/test/gmock-matchers_test.cc:4753:

    
private:
static const size_t kUnused = static_cast<size_t>(-1);

void PushMatch(size_t lhs, size_t rhs) {


actcd19/main/s/soundscaperenderer/soundscaperenderer_0.5.0~dfsg-3/apf/examples/mex_simpleprocessor.cpp:60:

      if (nrhs > 0)
{
block_size = static_cast<size_t>(*mxGetPr(prhs[0]));
--nrhs; ++prhs;
}


actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/base/hash.cc:100:

      hash64 = hash64 * odd_random + shift_random;
size_t high_bits =
static_cast<size_t>(hash64 >> (8 * (sizeof(uint64_t) - sizeof(size_t))));
return high_bits;
}


actcd19/main/libr/libreoffice/libreoffice_6.1.5-1/sc/source/ui/dbgui/filtdlg.cxx:251:

            {
const ScQueryEntry::Item& rItem = rEntry.GetQueryItem();
nCondPos = static_cast<size_t>(rEntry.eOp);
nFieldSelPos = GetFieldSelPos( static_cast<SCCOL>(rEntry.nField) );
if (rEntry.IsQueryByEmpty())


actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/third_party/pdfium/fpdfsdk/fpdf_structtree.cpp:72:

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


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

    
ScDPCollection::SheetCaches& rSheetCaches = pDPs->GetSheetCaches();
CPPUNIT_ASSERT_EQUAL(static_cast<size_t>(1), rSheetCaches.size());

const ScDPCache* pCache = rSheetCaches.getExistingCache(ScRange(0, 0, 0, 9, 24, 0));


actcd19/main/m/mongodb/mongodb_3.4.18-2/src/mongo/db/pipeline/expression.cpp:2296:

            Value startIndexArg = vpOperand[2]->evaluateInternal(vars);
uassertIfNotIntegralAndNonNegative(startIndexArg, getOpName(), "starting index");
startCodePointIndex = static_cast<size_t>(startIndexArg.coerceToInt());
}


actcd19/main/r/renderdoc/renderdoc_1.2+dfsg-1/qrenderdoc/3rdparty/scintilla/lexers/LexCPP.cxx:289:

    public:
LinePPState ForLine(Sci_Position line) const {
if ((line > 0) && (vlls.size() > static_cast<size_t>(line))) {
return vlls[line];
} else {


actcd19/main/t/thunderbird/thunderbird_60.5.1-1/media/webrtc/trunk/webrtc/base/stringutils.h:258:

    
inline int asccmp(const wchar_t* s1, const char* s2) {
return ascii_string_compare(s1, s2, static_cast<size_t>(-1), identity);
}
inline int ascicmp(const wchar_t* s1, const char* s2) {


actcd19/main/g/gromacs/gromacs_2019.1-1/src/gromacs/topology/mtop_util.cpp:610:

        {
memcpy(reinterpret_cast<char *>(&(dest->resinfo[l])), reinterpret_cast<char *>(&(src->resinfo[0])),
static_cast<size_t>(src->nres*sizeof(src->resinfo[0])));
}


actcd19/main/l/llvm-toolchain-8/llvm-toolchain-8_8~+rc3-1~exp1/include/llvm/Demangle/StringView.h:112:

      const char *begin() const { return First; }
const char *end() const { return Last; }
size_t size() const { return static_cast<size_t>(Last - First); }
bool empty() const { return First == Last; }
};


actcd19/main/c/chromium/chromium_72.0.3626.121-1/components/sessions/core/tab_restore_service_helper.cc:596:

    bool TabRestoreServiceHelper::ValidateTab(const Tab& tab) {
return !tab.navigations.empty() &&
static_cast<size_t>(tab.current_navigation_index) <
tab.navigations.size();
}


actcd19/main/z/zeroc-ice/zeroc-ice_3.7.2-4/.pc/0001-Fix-macros-for-Linux-OS-detection/cpp/src/Ice/Instance.cpp:1190:

                else
{
const_cast<size_t&>(_classGraphDepthMax) = static_cast<size_t>(num);
}
}