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/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/swift-im/swift-im_2.0+dev6-1/Swiften/Parser/PayloadParsers/UnitTest/FormParserTest.cpp:158:

    
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/a/antlr4-cpp-runtime/antlr4-cpp-runtime_4.7.2+dfsg-1/runtime/src/UnbufferedCharStream.cpp:100:

        sync(static_cast<size_t>(i)); // No need to sync if we look back.
}
if (static_cast<size_t>(index) >= _data.size()) {
return EOF;
}


actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/gpu/command_buffer/service/program_manager.cc:813:

        if (binding.second < 0)
continue;
size_t client_location = static_cast<size_t>(binding.second);
if (uniform_locations_.size() <= client_location)
uniform_locations_.resize(client_location + 1);


actcd19/main/g/grpc/grpc_1.16.1-1/src/core/tsi/ssl_transport_security.cc:410:

      property_count = (include_certificate_type ? static_cast<size_t>(1) : 0) +
2 /* common name, certificate */ +
static_cast<size_t>(subject_alt_name_count);
result = tsi_construct_peer(property_count, peer);
if (result != TSI_OK) return result;


actcd19/main/q/qt4-x11/qt4-x11_4.8.7+dfsg-17/src/3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:807:

        CRASH();
}
if (static_cast<size_t>(ClassIndex(kMaxSize)) >= sizeof(class_array)) {
MESSAGE("Invalid class index %d for kMaxSize\n", ClassIndex(kMaxSize));
CRASH();


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

          }
TEUCHOS_TEST_FOR_EXCEPTION_CLASS_FUNC
(static_cast<size_t> (srcWhichVecs.dimension_0 ()) !=
sourceMV.getNumVectors (), std::logic_error,
"srcWhichVecs.dimension_0() = " << srcWhichVecs.dimension_0 ()


actcd19/main/libr/libreoffice/libreoffice_6.1.5-1/editeng/source/accessibility/AccessibleParaManager.cxx:119:

        bool AccessibleParaManager::IsReferencable( sal_Int32 nChild ) const
{
DBG_ASSERT( 0 <= nChild && maChildren.size() > static_cast<size_t>(nChild),
"AccessibleParaManager::IsReferencable: invalid index" );


actcd19/main/g/golang-github-google-certificate-transparency/golang-github-google-certificate-transparency_0.0~git20160709.0.0f6e3d1~ds1-3/cpp/util/etcd_test.cc:1062:

                         kEtcdHost2 + ":" + to_string(kEtcdPort2) + ",");
const list<EtcdClient::HostPortPair> split_hosts(SplitHosts(hosts));
EXPECT_EQ(static_cast<size_t>(2), split_hosts.size());
EXPECT_EQ(kEtcdHost, split_hosts.front().first);
EXPECT_EQ(kEtcdPort, split_hosts.front().second);


actcd19/main/o/octave/octave_4.4.1-5/liboctave/util/lo-regexp.cc:534:

                  {
if (tokens[j].num == 0)
pairlen += static_cast<size_t> (end - start + 1);
else if (tokens[j].num <= pairs.rows ())
pairlen += static_cast<size_t> (pairs(tokens[j].num-1,1)


actcd19/non-free/t/tome/tome_2.4~0.git.2015.12.29-1.2/src/cmd3.cc:1589:

    			i++;
assert(i >= 0);
if (static_cast<size_t>(i) == who.size())
{
i = 0;


actcd19/main/v/vtk7/vtk7_7.1.1+dfsg1-12/Rendering/OpenGL2/vtkShadowMapPass.cxx:189:

            vtkTextureObject *map=
(*this->ShadowMapBakerPass->GetShadowMaps())[
static_cast<size_t>(shadowingLightIndex)];
// activate the texture map
map->Activate();


actcd19/main/c/chromium/chromium_72.0.3626.121-1/gpu/command_buffer/service/gl_utils.cc:292:

        return true;
std::unordered_set<uint32_t> unique_ids(client_ids, client_ids + n);
return (unique_ids.size() == static_cast<size_t>(n)) &&
(unique_ids.find(0) == unique_ids.end());
}


actcd19/main/c/chromium/chromium_72.0.3626.121-1/chrome/renderer/page_load_metrics/page_timing_metrics_sender.h:88:

      std::bitset<static_cast<size_t>(blink::mojom::kMaximumCSSSampleId + 1)>
css_properties_sent_;
std::bitset<static_cast<size_t>(blink::mojom::kMaximumCSSSampleId + 1)>
animated_css_properties_sent_;


actcd19/main/f/firefox/firefox_65.0.1-1/security/nss/lib/mozpkix/lib/pkixnames.cpp:1710:

    
// Shift components that occur after the contraction over.
std::copy_backward(address + (2u * static_cast<size_t>(contractionIndex)),
address + (2u * static_cast<size_t>(numComponents)),
address + (2u * 8u));


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

                            ">>> ERROR (RealSpaceTools::dot): Rank of input vector arguments must be 2 or 3!");
for (size_t i=0; i<arrayRank; i++) {
TEUCHOS_TEST_FOR_EXCEPTION( ( static_cast<size_t>(inVecs1.dimension(i)) != static_cast<size_t>(inVecs2.dimension(i)) ),
std::invalid_argument,
">>> ERROR (RealSpaceTools::dot): Dimensions of input vector arguments do not agree!");


actcd19/main/a/aegisub/aegisub_3.2.2+dfsg-4/libaegisub/lua/script_reader.cpp:39:

    		agi::read_file_mapping file(filename);
auto buff = file.read();
size_t size = static_cast<size_t>(file.size());

// Discard the BOM if present


actcd19/main/n/nodejs/nodejs_10.15.2~dfsg-1/deps/v8/src/wasm/wasm-code-manager.cc:598:

      masm.GetCode(nullptr, &code_desc);
Vector<const byte> instructions(code_desc.buffer,
static_cast<size_t>(code_desc.instr_size));
WasmCode* wasm_code = AddOwnedCode(instructions, // instructions
nullptr, // reloc_info


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

       for (size_t i=0; i<static_cast<size_t>(inVec.dimension(0)); i++)
for (size_t j=0; j<static_cast<size_t>(inVec.dimension(1)); j++)
for (size_t k=0; k<static_cast<size_t>(inVec.dimension(2)); k++)
for (size_t l=0; l<static_cast<size_t>(inVec.dimension(3)); l++){
temp += std::abs(inVecWrap(i,j,k,l));


actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/third_party/pdfium/fxjs/cjs_publicmethods.cpp:910:

    
// Processing separator style
if (static_cast<size_t>(iDec2) < strValue.GetLength()) {
if (IsStyleWithCommaDecimalMark(iSepStyle))
strValue.Replace(".", ",");


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

        aList2.Join(ScRange(4,1,0,8,6,0));

CPPUNIT_ASSERT_EQUAL(static_cast<size_t>(1), aList2.size());
CPPUNIT_ASSERT_EQUAL(ScRange(4,1,0,8,8,0), *aList2[0]);


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

    
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/content/browser/accessibility/web_contents_accessibility_android.cc:1176:

      }
return base::android::ToJavaIntArray(env, coords,
static_cast<size_t>(4 * len));
}


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

      else if(getrank(points) ==3){
std::string errmsg = ">>> ERROR (Intrepid::CellTools::validateArguments_setJacobian):";
TEUCHOS_TEST_FOR_EXCEPTION( (static_cast<size_t>(points.dimension(0)) != static_cast<size_t>(cellWorkset.dimension(0)) ), std::invalid_argument,
">>> ERROR (Intrepid::CellTools::validateArguments_setJacobian): dim 0 (number of cells) of points array must equal dim 0 of cellWorkset array");


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

                            }

for (size_t m1 = 0; m1 < q && col < static_cast<size_t>(ncol); m1++) /* x^2 + mx + z */
{
A(row,col++) = gf.plus(square,


actcd19/main/c/chromium/chromium_72.0.3626.121-1/third_party/googletest/src/googletest/src/gtest-port.cc:128:

                      reinterpret_cast<vm_address_t>(thread_list),
sizeof(thread_t) * thread_count);
return static_cast<size_t>(thread_count);
} else {
return 0;


actcd19/main/q/qt4-x11/qt4-x11_4.8.7+dfsg-17/src/3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1518:

                DLL_Remove(s);
TCMalloc_SystemRelease(reinterpret_cast<void*>(s->start << kPageShift),
static_cast<size_t>(s->length << kPageShift));
if (!s->decommitted) {
pagesDecommitted += s->length;


actcd19/main/m/mysql-5.7/mysql-5.7_5.7.25-1/storage/innobase/page/page0zip.cc:4561:

    			- page_zip->n_blobs * BTR_EXTERN_FIELD_REF_SIZE;
ASSERT_ZERO(stored - PAGE_ZIP_DIR_SLOT_SIZE,
static_cast<size_t>(PAGE_ZIP_DIR_SLOT_SIZE));
}


actcd19/main/libr/libreoffice/libreoffice_6.1.5-1/oox/source/vml/vmlinputstream.cxx:294:

            if( nReadSize > 0 )
{
memcpy( pcDest + nRet, maBuffer.getStr() + mnBufferPos, static_cast< size_t >( nReadSize ) );
mnBufferPos += nReadSize;
nBytesToRead -= nReadSize;


actcd19/main/n/nodejs/nodejs_4.6.1~dfsg-1/deps/v8/src/base/platform/platform-win32.cc:676:

    void OS::StrNCpy(char* dest, int length, const char* src, size_t n) {
// Use _TRUNCATE or strncpy_s crashes (by design) if buffer is too small.
size_t buffer_size = static_cast<size_t>(length);
if (n + 1 > buffer_size) // count for trailing '\0'
n = _TRUNCATE;


actcd19/main/c/chromium/chromium_72.0.3626.121-1/third_party/blink/renderer/core/frame/mhtml_archive_test.cc:410:

      const char* buf = "";
scoped_refptr<SharedBuffer> data =
SharedBuffer::Create(buf, static_cast<size_t>(0u));
CheckLoadResult(http_url, data.get(), LoadResult::kEmptyFile);
}


actcd19/main/q/qtwebkit-opensource-src/qtwebkit-opensource-src_5.212.0~alpha2-19/Source/JavaScriptCore/runtime/ArrayBuffer.h:216:

    size_t ArrayBuffer::gcSizeEstimateInBytes() const
{
return sizeof(ArrayBuffer) + static_cast<size_t>(byteLength());
}


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

        case VTK_LONG_LONG:
qsort(static_cast<void*>(arr->GetVoidPointer(0)),
static_cast<size_t>(arr->GetNumberOfTuples()),
static_cast<size_t>(arr->GetDataTypeSize()*nc),
vtkSortDataArrayComponentCompare_VTK_LONG_LONG);


actcd19/main/libk/libkml/libkml_1.3.0-7/tests/kml/convenience/google_maps_data_test.cc:135:

      // Check a few things known to be in metafeed.xml:
ASSERT_EQ(string("My maps"), atom_feed->get_title());
ASSERT_EQ(static_cast<size_t>(5), atom_feed->get_link_array_size());
ASSERT_EQ(static_cast<size_t>(3), atom_feed->get_entry_array_size());
ASSERT_EQ(string("alaska"),


actcd19/main/l/litecoin/litecoin_0.16.3-1/src/leveldb/table/format.cc:75:

      // Read the block contents as well as the type/crc footer.
// See table_builder.cc for the code that built this structure.
size_t n = static_cast<size_t>(handle.size());
char* buf = new char[n + kBlockTrailerSize];
Slice contents;


actcd19/main/s/scilab/scilab_6.0.1-7/modules/sparse/sci_gateway/cpp/sci_adj2sp.cpp:84:

    
m = static_cast<size_t>(dims.getReal(0, 0));
n = static_cast<size_t>(dims.getReal(0, 1));
}


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

              grpc_slice_buffer_undo_take_first(
slices, grpc_slice_sub(slice, static_cast<size_t>(cur - beg),
static_cast<size_t>(end - beg)));
}
grpc_slice_unref_internal(slice);


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

        pPage = pDrawLayer->GetPage(1);
CPPUNIT_ASSERT_MESSAGE("No page instance for the 2nd sheet.", pPage);
CPPUNIT_ASSERT_EQUAL_MESSAGE("2nd sheet shouldn't have any object.", static_cast<size_t>(0), pPage->GetObjCount());

// Insert a new sheet at left-end, and make sure the object has moved to


actcd19/main/m/mariadb-10.3/mariadb-10.3_10.3.12-2/storage/rocksdb/rocksdb/utilities/transactions/write_prepared_txn_db.h:54:

            SNAPSHOT_CACHE_SIZE(static_cast<size_t>(1ull << SNAPSHOT_CACHE_BITS)),
COMMIT_CACHE_BITS(commit_cache_bits),
COMMIT_CACHE_SIZE(static_cast<size_t>(1ull << COMMIT_CACHE_BITS)),
FORMAT(COMMIT_CACHE_BITS) {
Init(txn_db_options);


actcd19/main/z/zeroc-ice/zeroc-ice_3.7.2-4/cpp/src/Ice/Instance.cpp:1146:

                if(num < 1 || static_cast<size_t>(num) > static_cast<size_t>(0x7fffffff / 1024))
{
const_cast<size_t&>(_messageSizeMax) = static_cast<size_t>(0x7fffffff);
}
else


actcd19/main/o/orthanc-postgresql/orthanc-postgresql_2.0-5/Core/PostgreSQLLargeObject.cpp:132:

            throw PostgreSQLException("Internal error");
}
size_ = static_cast<size_t>(size);

// Go to the first byte of the object


actcd19/main/c/chromium/chromium_72.0.3626.121-1/components/sync/engine_impl/sync_manager_impl_unittest.cc:2881:

        }
ADD_FAILURE() << "Failed to find specified change";
return static_cast<size_t>(-1);
}


actcd19/main/g/gdal/gdal_2.4.0+dfsg-1/port/cpl_vsil_curl_streaming.cpp:1463:

            const size_t nSz =
std::min(nSize,
static_cast<size_t>(BKGND_BUFFER_SIZE - nFileOffsetStart));
if( ENABLE_DEBUG )
CPLDebug("VSICURL", "Writing [%d, %d[ in cache for %s",


actcd19/main/m/mariadb-10.3/mariadb-10.3_10.3.13-1/storage/rocksdb/rocksdb/table/block_based_table_reader.cc:1669:

                   static_cast<int>(kExtraCacheKeyPrefix + kMaxVarint64Length));
Slice unique_key =
Slice(cache_key, static_cast<size_t>(end - cache_key));
s = block_cache->Insert(unique_key, nullptr,
block.value->ApproximateMemoryUsage(), nullptr,


actcd19/main/f/firefox/firefox_65.0.1-1/media/webrtc/trunk/webrtc/rtc_base/sslstreamadapter_unittest.cc:893:

          EXPECT_EQ(0U, received_.size());
} else if (loss_ == 0) {
EXPECT_EQ_WAIT(static_cast<size_t>(sent_), received_.size(), 1000);
} else {
RTC_LOG(LS_INFO) << "Sent " << sent_ << " packets; received "


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

              break;
case GL_IMAGE_BINDING_ACCESS:
ASSERT(static_cast<size_t>(index) < mImageUnits.size());
*data = mImageUnits[index].access;
break;


actcd19/main/o/opencv/opencv_3.2.0+dfsg-6/modules/calib3d/src/circlesgrid.cpp:566:

    CirclesGridFinder::CirclesGridFinder(Size _patternSize, const std::vector<Point2f> &testKeypoints,
const CirclesGridFinderParameters &_parameters) :
patternSize(static_cast<size_t> (_patternSize.width), static_cast<size_t> (_patternSize.height))
{
CV_Assert(_patternSize.height >= 0 && _patternSize.width >= 0);


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

            if (rPos.Row() == nRow && nColStart <= rPos.Col() && rPos.Col() <= nColEnd)
{
size_t nPos = static_cast<size_t>(rPos.Col() - nColStart);
return std::pair<FieldType, size_t>(Column, nPos);
}


actcd19/main/libr/libreoffice/libreoffice_5.4.3-4/svtools/source/contnr/imivctl2.cxx:505:

            size_t nNewCellCount = static_cast<size_t>(nNewGridRows) * nNewGridCols;
bool* pNewGridMap = new bool[nNewCellCount];
size_t nOldCellCount = static_cast<size_t>(_nGridRows) * _nGridCols;
memcpy(pNewGridMap, _pGridMap, nOldCellCount * sizeof(bool));
memset(pNewGridMap + nOldCellCount, 0, (nNewCellCount-nOldCellCount) * sizeof(bool));


actcd19/main/c/clickhouse/clickhouse_18.16.1+ds-4/dbms/src/IO/ReadBufferAIO.cpp:280:

        if (bytes_read > 0)
fill_buffer.buffer().resize(region_left_padding + bytes_read);
if (static_cast<size_t>(bytes_read) < requested_byte_count)
is_eof = true;


actcd19/main/p/passwordsafe/passwordsafe_1.06+dfsg-1/src/core/CoreImpExp.cpp:1336:

        if (i_Offset[RUNCMD] >= 0 && tokens.size() > static_cast<size_t>(i_Offset[RUNCMD]))
ci_temp.SetRunCommand(tokens[i_Offset[RUNCMD]].c_str());
if (i_Offset[DCA] >= 0 && tokens.size() > static_cast<size_t>(i_Offset[DCA]))
ci_temp.SetDCA(tokens[i_Offset[DCA]].c_str());
if (i_Offset[SHIFTDCA] >= 0 && tokens.size() > static_cast<size_t>(i_Offset[SHIFTDCA]))


actcd19/main/c/chromium/chromium_72.0.3626.121-1/third_party/webrtc/modules/audio_coding/codecs/cng/audio_encoder_cng_unittest.cc:290:

            EXPECT_EQ(kCngPayloadType, encoded_info_.payload_type);
EXPECT_FALSE(encoded_info_.speech);
EXPECT_EQ(static_cast<size_t>(num_cng_coefficients) + 1,
encoded_info_.encoded_bytes);
EXPECT_EQ(expected_timestamp, encoded_info_.encoded_timestamp);


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

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

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


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

          level(0),
script(USCRIPT_INVALID_CODE),
glyph_count(static_cast<size_t>(-1)),
font(template_font),
font_size(0),


actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/third_party/webrtc/modules/audio_coding/neteq/expand.cc:464:

      correlation_length =
std::max(std::min(distortion_lag + 10, fs_mult_120),
static_cast<size_t>(60 * fs_mult));

size_t start_index = std::min(distortion_lag, correlation_lag);


actcd19/main/libr/libreoffice/libreoffice_5.4.3-4/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/libr/libreoffice/libreoffice_6.1.5-1/sc/qa/unit/rangelst_test.cxx:500:

        aList.Join(ScRange(5,0,0,9,4,0));

CPPUNIT_ASSERT_EQUAL(static_cast<size_t>(1), aList.size());
CPPUNIT_ASSERT_EQUAL(ScRange(0,0,0,10,4,0), aList[0]);
}


actcd19/main/n/nodejs/nodejs_10.15.2~dfsg-1/deps/v8/src/value-serializer.cc:2130:

            JSArray::SetLength(js_array, length);
size_t begin_properties =
stack.size() - 2 * static_cast<size_t>(num_properties);
if (num_properties &&
!SetPropertiesFromKeyValuePairs(


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

      // We let decoder return 5 ms each time, and therefore, 2 packets make 10 ms.
const size_t kFrameLengthSamples =
static_cast<size_t>(5 * kSampleRateHz / 1000);

const size_t kPayloadLengthBytes = 1; // This can be arbitrary.


actcd19/main/libr/libreoffice/libreoffice_5.4.3-4/sc/qa/unit/subsequent_filters-test.cxx:2107:

        CPPUNIT_ASSERT_MESSAGE("Pivot cache is expected for A1:N19 on the second sheet.", pCache);
CPPUNIT_ASSERT_EQUAL(static_cast<size_t>(14), pCache->GetFieldCount());
CPPUNIT_ASSERT_EQUAL(static_cast<size_t>(1), pCache->GetGroupFieldCount());

xDocSh->DoClose();


actcd19/main/i/insighttoolkit4/insighttoolkit4_4.12.2-dfsg1-4/Modules/Core/Common/include/itkNeighborhood.hxx:153:

      return std::slice( static_cast< size_t >( n ),
static_cast< size_t >( s ),
static_cast< size_t >( t ) );
}


actcd19/main/c/chromium/chromium_72.0.3626.121-1/media/gpu/test/video_player/video_player.cc:115:

    
base::AutoLock auto_lock(event_lock_);
return video_player_event_counts_[static_cast<size_t>(event)];
}


actcd19/main/s/spdlog/spdlog_1.3.1-1/include/spdlog/details/os.h:328:

        long tid;
thr_self(&tid);
return static_cast<size_t>(tid);
#elif __APPLE__
uint64_t tid;


actcd19/main/g/googletest/googletest_1.8.1-3/googlemock/test/gmock-matchers_test.cc:6006:

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

void PushMatch(size_t lhs, size_t rhs) {


actcd19/main/v/veyon/veyon_4.1.7+repack1-1/core/src/VncClientProtocol.cpp:319:

    		m_socket->read( reinterpret_cast<char *>( challenge ), CHALLENGESIZE );

vncEncryptBytes( challenge, m_vncPassword.constData(), static_cast<size_t>( m_vncPassword.size() ) );

m_socket->write( reinterpret_cast<const char *>( challenge ), CHALLENGESIZE );


actcd19/main/o/opengm/opengm_2.3.6+20160905-1/include/opengm/datastructures/partition.hxx:164:

       }
else if(element1 != element2) {
parents_[static_cast<size_t>(element2)] = element1;
++ranks_[static_cast<size_t>(element1)];
--numberOfSets_;


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

            pagelist.pages.insert(iter, page);
}
if(0 != size && static_cast<size_t>(start + size) < static_cast<size_t>((*iter)->next())){
fdpage* page = new fdpage((*iter)->offset, static_cast<size_t>((start + size) - (*iter)->offset), true);
(*iter)->bytes -= static_cast<size_t>((start + size) - (*iter)->offset);


actcd19/main/n/nodejs/nodejs_10.15.2~dfsg-1/deps/v8/src/arm/assembler-arm.h:1626:

          DCHECK(pending_32_bit_constants_.empty() ||
(start + pending_64_bit_constants_.size() * kDoubleSize <
static_cast<size_t>(first_const_pool_32_use_ +
kMaxDistToIntPool)));
DCHECK(pending_64_bit_constants_.empty() ||


actcd19/main/p/pcl/pcl_1.8.1+dfsg1-1/filters/include/pcl/filters/impl/fast_bilateral_omp.hpp:169:

        for (long int i = 0; i < static_cast<long int> (input_->size ()); ++i)
{
size_t x = static_cast<size_t> (i % input_->width);
size_t y = static_cast<size_t> (i / input_->width);
const float z = output (x,y).z - base_min;


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

      {
timestamps.resize(static_cast<size_t>(DIFFICULTY_BLOCKS_COUNT));
cumulative_difficulties.resize(static_cast<size_t>(DIFFICULTY_BLOCKS_COUNT));
size_t count = 0;
size_t max_i = timestamps.size()-1;


actcd19/main/q/qtwebkit/qtwebkit_2.3.4.dfsg-10/Source/WebCore/platform/posix/FileSystemPOSIX.cpp:125:

    {
do {
int bytesWritten = write(handle, data, static_cast<size_t>(length));
if (bytesWritten >= 0)
return bytesWritten;


actcd19/main/q/qpdf/qpdf_8.4.0-2/libqpdf/BufferInputSource.cc:142:

        this->last_offset = this->cur_offset;
size_t len = std::min(
static_cast<size_t>(end_pos - this->cur_offset), length);
memcpy(buffer, buf->getBuffer() + this->cur_offset, len);
this->cur_offset += len;


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/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/gpu/command_buffer/service/texture_manager.cc:752:

      DCHECK_LT(static_cast<size_t>(face_index),
face_infos_.size());
DCHECK_LT(static_cast<size_t>(level),
face_infos_[face_index].level_infos.size());


actcd19/main/f/firefox/firefox_65.0.1-1/media/webrtc/trunk/webrtc/modules/audio_coding/neteq/neteq_external_decoder_unittest.cc:197:

        ASSERT_FALSE(muted);
EXPECT_EQ(1u, output_internal_.num_channels_);
EXPECT_EQ(static_cast<size_t>(kOutputLengthMs * sample_rate_hz_ / 1000),
output_internal_.samples_per_channel_);


actcd19/main/q/qtwebkit/qtwebkit_2.3.4.dfsg-10/Tools/TestWebKitAPI/Tests/WTF/CString.cpp:53:

        CString string(emptyString);
ASSERT_FALSE(string.isNull());
ASSERT_EQ(string.length(), static_cast<size_t>(0));
ASSERT_EQ(string.data()[0], 0);


actcd19/main/g/google-perftools/google-perftools_2.7-1/src/malloc_hook_mmap_linux.h:180:

              start, length, prot, flags, fd, offset, &result)) {
result = do_mmap64(start, length, prot, flags, fd,
static_cast<size_t>(offset)); // avoid sign extension
}
MallocHook::InvokeMmapHook(result, start, length, prot, flags, fd, offset);


actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/third_party/WebKit/Source/core/layout/LayoutDeprecatedFlexibleBox.cpp:82:

              current_ordinal_ = forward_ ? 1 : largest_ordinal_;
} else {
if (static_cast<size_t>(ordinal_iteration_) >=
ordinal_values_.size() + 1)
return nullptr;


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

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


actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/mojo/edk/embedder/platform_channel_pair_posix_unittest.cc:126:

                                                &received_handles);
EXPECT_EQ(static_cast<ssize_t>(send_string.size()), result);
EXPECT_EQ(send_string, std::string(buf, static_cast<size_t>(result)));
EXPECT_TRUE(received_handles.empty());
}


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

        }
if(0 == STR2NCMP(arg, "ensure_diskfree=")){
size_t dfsize = static_cast<size_t>(s3fs_strtoofft(strchr(arg, '=') + sizeof(char))) * 1024 * 1024;
if(dfsize < static_cast<size_t>(S3fsCurl::GetMultipartSize())){
S3FS_PRN_WARN("specified size to ensure disk free space is smaller than multipart size, so set multipart size to it.");


actcd19/main/libk/libkml/libkml_1.3.0-5/tests/kml/dom/element_test.cc:169:

      element_->AddElement(legal_name);
element_->AddElement(legal_open);
ASSERT_EQ(static_cast<size_t>(2),
element_->get_misplaced_elements_array_size());
ASSERT_EQ(


actcd19/main/t/trilinos/trilinos_12.12.1-7/packages/anasazi/tpetra/test/TraceMin/cxx_main_standard_noprec.cpp:429:

        if (which == "LM") {
for (size_t i = static_cast<size_t> (n + 1 - numev);
i <= static_cast<size_t> (n); ++i) {
Scalar omega = i*PI/(2*n+2);
true_eigs[i-(n+1-numev)] = 4*sin(omega)*sin(omega);


actcd19/main/libr/libreoffice/libreoffice_5.4.3-4/sw/qa/extras/uiwriter/uiwriter.cxx:971:

        size_t nActual = pPage->GetObjCount();
// Two objects on the draw page: the shape and its textbox.
CPPUNIT_ASSERT_EQUAL(static_cast<size_t>(2), nActual);

pWrtShell->DelSelectedObj();


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

    
if (!val) {
WriteSize(static_cast<size_t>(0u));
return;
}


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/c/cyphesis-cpp/cyphesis-cpp_0.6.2-3/.pc/fix-typos.patch/rulesets/Py_Shape.cpp:452:

        }
#endif // NDEBUG
if (static_cast<size_t>(index) >= self->shape.s->size()) {
PyErr_SetString(PyExc_IndexError, "Number of corners exceded");
return 0;


actcd19/main/m/mpqc3/mpqc3_0.0~git20170114-4.1/src/lib/math/scmat/replsymm.cc:391:

    ReplSymmSCMatrix::assign_p(const double*m)
{
size_t d = i_offset(static_cast<size_t>(n()));
memcpy(matrix, m, sizeof(double)*d);
}


actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/media/blink/webaudiosourceprovider_impl_unittest.cc:245:

    
// Point the WebVector into memory owned by |bus1|.
blink::WebVector<float*> audio_data(static_cast<size_t>(bus1->channels()));
for (size_t i = 0; i < audio_data.size(); ++i)
audio_data[i] = bus1->channel(static_cast<int>(i));


actcd19/main/v/vtk6/vtk6_6.3.0+dfsg2-2/Domains/Chemistry/vtkCMLMoleculeReader.cxx:235:

    
// Store name for lookups
size_t atomId = static_cast<size_t>(atom.GetId());
if (atomId >= this->AtomNames.size())
{


actcd19/main/o/opensurgsim/opensurgsim_0.7.0-8/SurgSim/Graphics/PaintBehavior.cpp:302:

    	size_t topLeftX = static_cast<size_t>(std::max(0.0, coordinates[0] + m_brushOffsetX));
size_t topLeftY = static_cast<size_t>(std::max(0.0, coordinates[1] + m_brushOffsetY));
size_t bottomRightX = std::min(m_width - topLeftX, static_cast<size_t>(m_brush.cols()));
size_t bottomRightY = std::min(m_height - topLeftY, static_cast<size_t>(m_brush.rows()));
for (size_t channel = 0; channel < numChannels; channel++)


actcd19/main/o/owncloud-client/owncloud-client_2.3.3+dfsg-2/src/3rdparty/libcrashreporter-qt/3rdparty/breakpad/processor/minidump.cc:4782:

    
// Convert to size_t and check for data loss
size_t bytes_read_converted = static_cast<size_t>(bytes_read);
if (static_cast<std::streamsize>(bytes_read_converted) != bytes_read) {
BPLOG(ERROR) << "ReadBytes: conversion data loss detected when converting "


actcd19/main/w/webkit2gtk/webkit2gtk_2.22.7-1/Source/ThirdParty/ANGLE/src/tests/perf_tests/EGLInitializePerf.cpp:47:

        if (strcmp(name, "GPU.ANGLE.Renderer11InitializeDLLsMS") == 0)
{
captures->loadDLLsMS += static_cast<size_t>(sample);
}
// Note: not captured in debug, due to creating a debug device


actcd19/main/t/tango/tango_9.2.5a+dfsg1-2/lib/cpp/log4tango/src/RollingFileAppender.cpp:98:

                return -1;
} else {
if(static_cast<size_t>(offset) >= _max_file_size) {
roll_over();
}


actcd19/main/r/rocksdb/rocksdb_5.17.2-3/util/file_reader_writer.cc:701:

        // New buffer not needed. But memmove bytes from tail to the beginning since
// chunk_len is greater than 0.
buffer_.RefitTail(static_cast<size_t>(chunk_offset_in_buffer), static_cast<size_t>(chunk_len));
}


actcd19/main/o/octave/octave_4.4.1-5/libinterp/corefcn/variables.cc:1460:

            str = val.type_name ();
param_length(pos_t) = ((str.length ()
> static_cast<size_t> (param_length(pos_t)))
? str.length () : param_length(pos_t));


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

    
TEUCHOS_TEST_FOR_EXCEPTION(
static_cast<size_t> (importsIndex) > static_cast<size_t> (imports.size ()),
std::logic_error,
"Tpetra::Details::DistributedNoncontiguousDirectory::getEntriesImpl: "


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

       }
}else if(refPointsRank==2){
for(size_t i=0;i<static_cast<size_t>(refPoints.dimension(0));i++){
for(size_t j=0;j<static_cast<size_t>(refPoints.dimension(1));j++){
xOld(i,j) = refPointsWrap(i,j);


actcd19/main/j/juce/juce_5.4.1+really5.4.1~repack-2/modules/juce_dsp/frequency/juce_FFT.cpp:749:

                             && succeeded (DftiCommitDescriptor (mklc2r)))

{
return new IntelFFT (static_cast<size_t> (orderToUse), mklc2c, mklc2r);
}


actcd19/main/libr/libreoffice/libreoffice_6.1.5-1/sc/inc/address.hxx:746:

            (static_cast<size_t>(aStart.Row()) << 26) ^ // start row <= 2^6
(static_cast<size_t>(aStart.Col()) << 21) ^ // start column <= 2^5
(static_cast<size_t>(aEnd.Col()) << 15) ^ // end column <= 2^6
static_cast<size_t>(aEnd.Row()); // end row <= 2^15
}