codesearch.isocpp.org by Andrew Tomazos.

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

Searching for `static_cast<int>`...

2489599 source files searched.

123173 matches found.

Here is a random sample of matches...


actcd19/main/c/chromium/chromium_72.0.3626.121-1/base/i18n/build_utf8_validator_tables.cc:405:

                "    // State %d, offset 0x%02x\n",
static_cast<int>(state_index),
static_cast<int>(state_offset[state_index]));
table_printer.PrintValue(shift);
for (int i = 0; i < 0x100; i += (1 << shift)) {


actcd19/main/libs/libsbml/libsbml_5.15.2+dfsg-1/src/sbml/math-legacy/ASTNode.cpp:3815:

    {
if (node == NULL) return (int) false;
return static_cast<int>(node->isSetUnits());
}


actcd19/main/libv/libv8-3.14/libv8-3.14_3.14.5.8-11/src/isolate.cc:1961:

      CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, embedder_data_)),
Internals::kIsolateEmbedderDataOffset);
CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, heap_.roots_)),
Internals::kIsolateRootsOffset);


actcd19/main/libm/libmwaw/libmwaw_0.3.14-1/src/lib/RagTime5Chart.cxx:1348:

          m_link.m_name="ChartSerieType";
f << m_link << "," << mess;
val=static_cast<int>(input->readLong(4));
if (val) {
ZoneType zoneType;


actcd19/main/v/valentina/valentina_0.6.1~dfsg-9/src/app/valentina/mainwindow.cpp:5308:

                if (qApp->patternType() == MeasurementsType::Multisize)
{
const int height = static_cast<int>(UnitConvertor(text.toInt(), Unit::Cm, *pattern->GetPatternUnit()));
const qint32 index = gradationHeights->findText(QString().setNum(height));
if (index != -1)


actcd19/main/o/openimageio/openimageio_2.0.5~dfsg0-1/src/include/OpenImageIO/fmt/format-inl.h:394:

        else
biased_e = 1; // Subnormals use biased exponent 1 (min exponent).
e = static_cast<int>(biased_e - exponent_bias - double_significand_size);
}


actcd19/main/e/exiv2/exiv2_0.25-4/src/convert.cpp:876:

                         static_cast<int>(datetime.year),
static_cast<int>(datetime.month),
static_cast<int>(datetime.day),
static_cast<int>(datetime.hour),
static_cast<int>(datetime.minute),


actcd19/main/libb/libbpp-phyl/libbpp-phyl_2.4.1-2/src/Bpp/Phyl/Model/FrequenciesSet/CodonFrequenciesSet.cpp:366:

      for (size_t i = 0; i < frequencies.size(); i++)
{
if (!(pgc_->isStop(static_cast<int>(i))))
sum += frequencies[i];
}


actcd19/contrib/o/openmw/openmw_0.45.0-2/apps/openmw/mwgui/review.cpp:181:

        {
int current = static_cast<int>(value.getCurrent());
int modified = static_cast<int>(value.getModified());

mFatigue->setValue(current, modified);


actcd19/main/m/mame/mame_0.176-3/src/devices/sound/discrete.h:4691:

    
/* Component specific */
#define DISCRETE_555_ASTABLE(NODE,RESET,R1,R2,C,OPTIONS) DSC_SND_ENTRY( NODE, dsd_555_astbl , DSS_NODE , 5, DSE( static_cast<int>(RESET),static_cast<int>(R1),static_cast<int>(R2),static_cast<int>(C),NODE_NC ), DSE( RESET,R1,R2,C,-1 ), OPTIONS, "DISCRETE_555_ASTABLE" ),
#define DISCRETE_555_ASTABLE_CV(NODE,RESET,R1,R2,C,CTRLV,OPTIONS) DSC_SND_ENTRY( NODE, dsd_555_astbl , DSS_NODE , 5, DSE( static_cast<int>(RESET),static_cast<int>(R1),static_cast<int>(R2),static_cast<int>(C),static_cast<int>(CTRLV) ), DSE( RESET,R1,R2,C,CTRLV ), OPTIONS, "DISCRETE_555_ASTABLE_CV" ),
#define DISCRETE_555_MSTABLE(NODE,RESET,TRIG,R,C,OPTIONS) DSC_SND_ENTRY( NODE, dsd_555_mstbl , DSS_NODE , 4, DSE( static_cast<int>(RESET),static_cast<int>(TRIG),static_cast<int>(R),static_cast<int>(C) ), DSE( RESET,TRIG,R,C ), OPTIONS, "DISCRETE_555_MSTABLE" ),


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

          total_size +=
::google::protobuf::internal::WireFormatLite::MessageSize(
this->methods(static_cast<int>(i)));
}
}


actcd19/main/h/h2o/h2o_2.2.5+dfsg2-2/deps/brotli/enc/compress_fragment.cc:601:

            input_bytes = BROTLI_UNALIGNED_LOAD64(ip - 3);
uint32_t prev_hash = HashBytesAtOffset(input_bytes, 0, shift);
table[prev_hash] = static_cast<int>(ip - base_ip - 3);
prev_hash = HashBytesAtOffset(input_bytes, 1, shift);
table[prev_hash] = static_cast<int>(ip - base_ip - 2);


actcd19/main/p/paraview/paraview_5.4.1+dfsg4-3.1/Utilities/ProcessXML/ProcessXML.cxx:84:

          ifs.close();

char* encoded_buffer = new char[static_cast<int>(1.5 * length + 8)];
size_t end = vtksysBase64_Encode(buffer, static_cast<unsigned long>(length),
reinterpret_cast<unsigned char*>(encoded_buffer), 0);


actcd19/main/z/zeromq3/zeromq3_4.3.1-1/debian/zmq.hpp:469:

            inline socket_t(context_t& context_, socket_type type_)
{
init(context_, static_cast<int>(type_));
}
#endif


actcd19/main/libr/libreoffice/libreoffice_6.1.5-1/connectivity/source/drivers/jdbc/ConnectionLog.cxx:94:

            const size_t buffer_size = sizeof( buffer );
snprintf( buffer, buffer_size, "%02i:%02i:%02i.%09i",
static_cast<int>(_rTime.Hours), static_cast<int>(_rTime.Minutes), static_cast<int>(_rTime.Seconds), static_cast<int>(_rTime.NanoSeconds) );
return OUString::createFromAscii( buffer );
}


actcd19/main/q/qt4-x11/qt4-x11_4.8.7+dfsg-17/src/3rdparty/webkit/Source/WebCore/generated/JSSVGSVGElement.cpp:1064:

    {
UNUSED_PARAM(exec);
return jsNumber(static_cast<int>(2));
}


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

    int fastfloor( const float x )
{
return x > 0 ? static_cast<int>( x ) : static_cast<int>( x ) - 1;
}


actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/components/offline_pages/core/model/persistent_pages_consistency_check_task_unittest.cc:241:

      histogram_tester()->ExpectUniqueSample(
"OfflinePages.ConsistencyCheck.Persistent.Result",
static_cast<int>(SyncOperationResult::SUCCESS), 1);
}


actcd19/main/o/opencv/opencv_3.2.0+dfsg-4/modules/photo/src/align.cpp:199:

               << "max_bits" << max_bits
<< "exclude_range" << exclude_range
<< "cut" << static_cast<int>(cut);
}


actcd19/main/l/lammps/lammps_0~20180510.gitaa1d815fe-4/src/USER-INTEL/pppm_intel.cpp:392:

          int nx = static_cast<int> ((x[i].x-lo0)*xi+fshift) - OFFSET;
int ny = static_cast<int> ((x[i].y-lo1)*yi+fshift) - OFFSET;
int nz = static_cast<int> ((x[i].z-lo2)*zi+fshift) - OFFSET;

part2grid[i][0] = nx;


actcd19/main/k/kbounce/kbounce_18.04.1-1/board.cpp:313:

    {
return QPoint( static_cast<int>( m_tileSize.width() * pos.x() ),
static_cast<int>( m_tileSize.height() * pos.y() ) );
}


actcd19/main/p/paraview/paraview_5.4.1+dfsg4-3.1/VTK/Rendering/Label/vtkDynamic2DLabelMapper.cxx:703:

          || viewport->IsInViewport(
static_cast<int>(screenX - this->LabelWidth[i]),
static_cast<int>(screenY - this->LabelHeight[i]));
if (inside && (1.0f / scale) < this->Cutoff[i])
{


actcd19/main/libr/libreoffice/libreoffice_5.4.3-4/starmath/source/parse.cxx:1160:

            switch (eType)
{
case TRSUB : nIndex = static_cast<int>(RSUB); break;
case TRSUP : nIndex = static_cast<int>(RSUP); break;
case TFROM :


actcd19/main/o/openscenegraph-3.4/openscenegraph-3.4_3.4.1+dfsg1-5/src/osgPlugins/txp/trpage_print.cpp:389:

        if (floatData.size())
{
sprintf(ls,"tex coords (float) = %d",static_cast<int>(floatData.size())); buf.prnLine(ls);
buf.IncreaseIndent();
for (unsigned int i=0;i<floatData.size()/2;i++)


actcd19/main/g/gromacs/gromacs_2019-2/src/gromacs/hardware/detecthardware.cpp:287:

        hwinfo_g->ngpu_compatible_min = hwinfo_g->gpu_info.n_dev_compatible;
hwinfo_g->ngpu_compatible_max = hwinfo_g->gpu_info.n_dev_compatible;
hwinfo_g->simd_suggest_min = static_cast<int>(simdSuggested(cpuInfo));
hwinfo_g->simd_suggest_max = static_cast<int>(simdSuggested(cpuInfo));
hwinfo_g->bIdenticalGPUs = TRUE;


actcd19/main/c/chromium/chromium_72.0.3626.121-1/third_party/blink/renderer/core/html/media/autoplay_uma_helper.cc:300:

           static_cast<int>(AutoplayUnmuteActionStatus::kNumberOfStatus)));

autoplay_unmute_histogram.Count(static_cast<int>(status));

// Record UKM event for unmute muted autoplay.


actcd19/main/z/z3/z3_4.4.1-0.4/src/parsers/util/scanner.cpp:446:

            m_normalized[static_cast<int>('\'')] = 'a';
m_normalized[static_cast<int>('!')] = 'a';
m_normalized[static_cast<int>('?')] = 'a';
}
}


actcd19/main/o/opencv/opencv_3.2.0+dfsg-4/contrib/modules/dnn/src/tensorflow/tf_importer.cpp:232:

                val.list().i(0) != 1 || val.list().i(3) != 1)
CV_Error(Error::StsError, "Unsupported strides");
layerParams.set("stride_h", static_cast<int>(val.list().i(1)));
layerParams.set("stride_w", static_cast<int>(val.list().i(2)));
}


actcd19/main/c/chromium/chromium_72.0.3626.121-1/build/fuchsia/fidlgen_js/test/fidlgen_js_unittest.cc:992:

    
EXPECT_EQ(helper.Get<int>("result_blorp"),
static_cast<int>(fidljstest::Blorp::BETA));
EXPECT_EQ(helper.FromV8BigInt<int64_t>(helper.runner().global()->Get(
gin::StringToV8(isolate, "result_timestamp"))),


actcd19/main/c/chromium/chromium_72.0.3626.121-1/third_party/abseil-cpp/absl/types/variant_test.cc:1786:

        std::pair<int, int> operator()(absl::string_view a,
std::unique_ptr<int> b) const {
return {static_cast<int>(a.size()), static_cast<int>(*b)};
}
std::pair<int, int> operator()(int a, absl::string_view b) const {


actcd19/main/c/codeblocks/codeblocks_16.01+dfsg-2.1/src/plugins/contrib/DoxyBlocks/Config.cpp:168:

        cfgFile->Write(sSectionOutput + sGeneratePerlMod, static_cast<int>(m_bGeneratePerlMod));
// Pre-processor.
cfgFile->Write(sSectionPreProcessor + sEnablePreProcessing, static_cast<int>(m_bEnablePreprocessing));
// Dot.
cfgFile->Write(sSectionDot + sClassDiagrams, static_cast<int>(m_bClassDiagrams));


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

        if (context->getClientVersion() < Version(3, 0) && !context->getExtensions().textureNPOT &&
(!isPow2(static_cast<int>(texture->getWidth(baseTarget, 0))) ||
!isPow2(static_cast<int>(texture->getHeight(baseTarget, 0)))))
{
ASSERT(target == TextureType::_2D || target == TextureType::Rectangle ||


actcd19/main/r/ring/ring_20190215.1.f152c98~ds1-1/lrc/src/audio/settings.cpp:209:

    {
ConfigurationManagerInterface& configurationManager = ConfigurationManager::instance();
return static_cast<int>(configurationManager.getVolume(DeviceKey::PLAYBACK)*100);
}


actcd19/main/s/scite/scite_4.1.3-1/scintilla/src/ScintillaBase.cxx:1012:

    
case SCI_CALLTIPSETHLT:
ct.SetHighlight(static_cast<int>(wParam), static_cast<int>(lParam));
break;


actcd19/main/p/psi4/psi4_1.0-1/src/lib/libmints/molecule.cc:326:

    
outfile->Printf("WARNING: Mass was not set in the atom object for atom %d\n", atom + 1);
ret = an2masses[static_cast<int>(atoms_[atom]->Z())];
}


actcd19/main/e/eigen3/eigen3_3.3.7-1/unsupported/Eigen/CXX11/src/Tensor/TensorContractionMapper.h:118:

        Index nocontract_val = left ? row : col;
Index linidx = 0;
for (int i = static_cast<int>(array_size<nocontract_t>::value) - 1; i > 0; i--) {
const Index idx = nocontract_val / m_ij_strides[i];
linidx += idx * m_nocontract_strides[i];


actcd19/main/z/zeroc-ice/zeroc-ice_3.7.2-4/php/src/php7/Types.cpp:336:

            zval typeId;
AutoDestroy typeIdDestroyer(&typeId);
ZVAL_STRINGL(&typeId, STRCAST((*p)->typeId.c_str()), static_cast<int>((*p)->typeId.size()));
if(add_property_zval(&slice, STRCAST("typeId"), &typeId) != SUCCESS)
{


actcd19/main/a/ace/ace_6.4.5+dfsg-1/ace/ACE.cpp:2843:

    
#if defined (_SC_OPEN_MAX) && !defined (ACE_LACKS_SYSCONF)
return static_cast<int> (ACE_OS::sysconf (_SC_OPEN_MAX));
#elif defined (FD_SETSIZE)
return FD_SETSIZE;


actcd19/main/v/vtk6/vtk6_6.3.0+dfsg2-2/IO/NetCDF/vtkSLACParticleReader.cxx:222:

      size_t dimLength;
CALL_NETCDF(nc_inq_dimlen(ncFD, dimIds[1], &dimLength));
if (static_cast<int>(dimLength) != expectedNumComponents)
{
char name[NC_MAX_NAME+1];


actcd19/contrib/d/dhewm3/dhewm3_1.5.0+git20181221+dfsg-1/neo/game/script/Script_Program.cpp:795:

    						file->Printf( "\\n" );
} else {
file->Printf( "\\x%.2x", static_cast<int>( *ch ) );
}
}


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

            KeyDesc* psKD = asKeys[i];
CPLFree(psKD->pszK);
for( int j=0; j<static_cast<int>(psKD->asValues.size());j++)
CPLFree(psKD->asValues[j]);
delete psKD;


actcd19/main/t/tagua/tagua_1.0~alpha2-16-g618c6a0-1/src/movement.cpp:61:

      return m_from + QPoint(
static_cast<int>(m_velocity.x() * m_x(t)),
static_cast<int>(m_velocity.y() * m_y(t)));
}


actcd19/main/g/gdal/gdal_2.4.0+dfsg-1/port/cpl_vsil_az.cpp:423:

        while( true )
{
if( nPos < static_cast<int>(aoEntries.size()) )
{
auto& entry = aoEntries[nPos];


actcd19/main/g/gdal/gdal_2.4.0+dfsg-1/frmts/postgisraster/postgisrasterdataset.cpp:2553:

    
// Calculate the raster size from the geotransform array
nRasterXSize = static_cast<int>(fabs(rint((xmax - xmin) /
adfGeoTransform[GEOTRSFRM_WE_RES])));


actcd19/main/libr/libreoffice/libreoffice_6.1.5-1/editeng/qa/unit/core-test.cxx:1172:

        CPPUNIT_ASSERT_EQUAL( 18, static_cast<int>(pSecAttr->mnStart) );
CPPUNIT_ASSERT_EQUAL( 22, static_cast<int>(pSecAttr->mnEnd) );
CPPUNIT_ASSERT_EQUAL( 0, static_cast<int>(pSecAttr->maAttributes.size()) );

// Copy text using legacy format


actcd19/main/m/mame/mame_0.206+dfsg.1-1/3rdparty/sol2/sol/types.hpp:475:

    
inline void type_error(lua_State* L, type expected, type actual) {
type_error(L, static_cast<int>(expected), static_cast<int>(actual));
}


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

      strm << "rgba:  redSize=" << static_cast<int>(pfd.cRedBits) <<
" greenSize=" << static_cast<int>(pfd.cGreenBits) <<
"blueSize=" << static_cast<int>(pfd.cBlueBits) <<
"alphaSize=" << static_cast<int>(pfd.cAlphaBits) << endl;
strm << "aux buffers: " << static_cast<int>(pfd.cAuxBuffers)<< endl;


actcd19/main/l/lammps/lammps_0~20181211.gitad1b1897d+dfsg1-1/src/KOKKOS/nbin_kokkos.h:69:

          ix = static_cast<int> ((x-bboxhi_[0])*bininvx) + nbinx;
else if (x >= bboxlo_[0]) {
ix = static_cast<int> ((x-bboxlo_[0])*bininvx);
ix = MIN(ix,nbinx-1);
} else


actcd19/main/f/firefox/firefox_65.0.1-1/gfx/angle/checkout/src/compiler/translator/glslang_lex.cpp:2746:

    		YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
result, num_to_read );
yyg->yy_n_chars = static_cast<int>(result);

YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;


actcd19/main/v/vtk7/vtk7_7.1.1+dfsg1-12/Filters/FlowPaths/vtkParticleTracerBase.cxx:924:

        for (size_t i=0; i<seedSources.size(); i++)
{
this->AssignSeedsToProcessors(this->CurrentTimeValue,seedSources[i], static_cast<int>(i), 0, this->LocalSeeds, seedPointId);
}
this->ParticleInjectionTime.Modified();


actcd19/main/c/chromium/chromium_72.0.3626.121-1/net/log/net_log_util.cc:377:

    
cache_info_dict->SetInteger("capacity",
static_cast<int>(cache->max_entries()));
cache_info_dict->SetInteger("network_changes", cache->network_changes());


actcd19/main/c/chromium/chromium_72.0.3626.121-1/v8/src/base/platform/platform-posix.cc:492:

    
int OS::GetCurrentProcessId() {
return static_cast<int>(getpid());
}


actcd19/contrib/c/corsix-th/corsix-th_0.60-2/CorsixTH/Src/th_lua_map.cpp:181:

        THMap* pMap = luaT_testuserdata<THMap>(L);
int iX = static_cast<int>(luaL_checkinteger(L, 2)) - 1;
int iY = static_cast<int>(luaL_checkinteger(L, 3)) - 1;
const THMapNode* pNode = pMap->getNode(iX, iY);
uint16_t iTemp = pMap->getNodeTemperature(pNode);


actcd19/main/p/paraview/paraview_5.0.1+dfsg1-5.1/VTK/Common/DataModel/vtkPixelExtent.h:273:

      Data[0] = static_cast<int>(ext[0]);
Data[1] = static_cast<int>(ext[1]);
Data[2] = static_cast<int>(ext[2]);
Data[3] = static_cast<int>(ext[3]);
}


actcd19/main/t/trilinos/trilinos_12.12.1-7/packages/moocho/src/MoochoPack/src/std/MoochoPack_MeritFunc_PenaltyParamUpdateGuts_AddedStep.cpp:86:

    
// print step header.
if( static_cast<int>(olevel) >= static_cast<int>(PRINT_ALGORITHM_STEPS) ) {
using IterationPack::print_algorithm_step;
print_algorithm_step( algo, step_poss, type, assoc_step_poss, out );


actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/net/tools/gdig/gdig.cc:495:

             entry_index,
static_cast<int>(resolve_end_time.InMilliseconds()),
static_cast<int>(resolve_time.InMilliseconds()),
replay_log_[entry_index].domain_name.c_str(), val);
if (val != OK) {


actcd19/main/c/coinmp/coinmp_1.8.3-2/Cgl/src/CglZeroHalf/Cgl012cut.cpp:952:

    	 reinterpret_cast<void *>((*n).firstArc),
(*n).distanceBack,
static_cast<int>((*n).parentNode));
}


actcd19/main/libr/libreoffice/libreoffice_5.4.3-4/unotools/source/config/compatibility.cxx:304:

            sFixPath += rItems[ nSourceStep ];
sFixPath += PATHDELIMITER;
for ( int i = static_cast<int>(SvtCompatibilityEntry::Index::Module); i < static_cast<int>(SvtCompatibilityEntry::Index::INVALID); ++i )
{
lProperties[ nDestStep ] = sFixPath + SvtCompatibilityEntry::getName( SvtCompatibilityEntry::Index(i) );


actcd19/main/t/thunderbird/thunderbird_60.5.1-1/gfx/skia/skia/include/gpu/GrTypes.h:108:

    #define GR_MAKE_BITFIELD_CLASS_OPS(X) \
constexpr GrTFlagsMask<X> operator~(X a) { \
return GrTFlagsMask<X>(~static_cast<int>(a)); \
} \
constexpr X operator|(X a, X b) { \


actcd19/main/m/metview/metview_4.7.2-3/src/libUtil/MvCommandHistory.h:106:

    	removeAfterCurrent();
items_.push_back(item);
pos_=static_cast<int>(items_.size());
}


actcd19/main/p/paraview/paraview_5.0.1+dfsg1-5.1/VTK/Rendering/Core/vtkViewport.cxx:693:

        lowerLeft[1] = static_cast<int>(vport[1]*size[1] + 0.5);
upperRight[0] = static_cast<int>(vport[2]*size[0] + 0.5);
upperRight[1] = static_cast<int>(vport[3]*size[1] + 0.5);
upperRight[0]--;
upperRight[1]--;


actcd19/main/b/binutils/binutils_2.25-5/gold/output.cc:4230:

    Output_segment::has_dynamic_reloc() const
{
for (int i = 0; i < static_cast<int>(ORDER_MAX); ++i)
if (this->has_dynamic_reloc_list(&this->output_lists_[i]))
return true;


actcd19/main/r/rocksdb/rocksdb_5.17.2-3/db/compaction_picker_universal.cc:607:

      std::vector<CompactionInputFiles> inputs(vstorage->num_levels());
for (size_t i = 0; i < inputs.size(); ++i) {
inputs[i].level = start_level + static_cast<int>(i);
}
for (size_t i = start_index; i < first_index_after; i++) {


actcd19/main/libs/libsbml/libsbml_5.16.0+dfsg-2/src/sbml/Species.cpp:2932:

    Species_isSetBoundaryCondition (const Species_t *s)
{
return (s != NULL) ? static_cast<int>( s->isSetBoundaryCondition() ) : 0;
}


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

    
case NumberDouble:
return static_cast<int>(_storage.doubleValue);

case NumberDecimal:


actcd19/contrib/c/corsix-th/corsix-th_0.62-2/CorsixTH/Src/th_lua_map.cpp:954:

        pathfinder* pPathfinder = luaT_testuserdata<pathfinder>(L);
if(pPathfinder->find_path(nullptr, static_cast<int>(luaL_checkinteger(L, 2)) - 1, static_cast<int>(luaL_checkinteger(L, 3)) - 1,
static_cast<int>(luaL_checkinteger(L, 4)) - 1, static_cast<int>(luaL_checkinteger(L, 5)) - 1))
{
lua_pushinteger(L, pPathfinder->get_path_length());


actcd19/main/c/codequery/codequery_0.21.1+dfsg1-1/scintilla/src/Editor.cxx:4887:

    		lastClickTime = curTime;
lastClick = pt;
lastXChosen = static_cast<int>(pt.x) + xOffset;
if (sel.selType == Selection::selStream) {
SetLastXChosen();


actcd19/main/l/lammps/lammps_0~20181211.gitad1b1897d+dfsg1-1/src/atom.cpp:1946:

        double nzbbox = neighbor->bboxhi[2] - nz_low;
int nnbinx = static_cast<int> (nxbbox * bininv);
int nnbiny = static_cast<int> (nybbox * bininv);
int nnbinz = static_cast<int> (nzbbox * bininv);
if (domain->dimension == 2) nnbinz = 1;


actcd19/main/q/qtwebkit/qtwebkit_2.3.4.dfsg-10/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp:2729:

    {
UNUSED_PARAM(exec);
return jsNumber(static_cast<int>(0xffffffff));
}


actcd19/main/c/chromium/chromium_72.0.3626.121-1/third_party/abseil-cpp/absl/strings/substitute.cc:51:

                  "%d\", but only %d args were given.  Full format std::string was: "
"\"%s\".",
index, static_cast<int>(num_args), absl::CEscape(format).c_str());
#endif
return;


actcd19/main/n/nodejs/nodejs_10.15.2~dfsg-1/deps/v8/src/compiler/js-create-lowering.cc:678:

          AllocateElements(effect, control, elements_kind, values, pretenure);
Node* properties = jsgraph()->EmptyFixedArrayConstant();
Node* length = jsgraph()->Constant(static_cast<int>(values.size()));

// Perform the allocation of the actual JSArray object.


actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/third_party/angle/src/libANGLE/renderer/d3d/TextureD3D.cpp:1483:

    gl::Error TextureD3D_2D::updateStorageLevel(const gl::Context *context, int level)
{
ASSERT(level <= static_cast<int>(mImageArray.size()) && mImageArray[level] != nullptr);
ASSERT(isLevelComplete(level));


actcd19/main/libr/libreoffice/libreoffice_6.1.5-1/vcl/unx/generic/window/salframe.cxx:3570:

    
bool bMoved = ( pEvent->x != maGeometry.nX || pEvent->y != maGeometry.nY );
bool bSized = ( pEvent->width != static_cast<int>(maGeometry.nWidth) || pEvent->height != static_cast<int>(maGeometry.nHeight) );

maGeometry.nX = pEvent->x;


actcd19/main/q/qtwebkit-opensource-src/qtwebkit-opensource-src_5.212.0~alpha2-19/Source/WebCore/platform/graphics/Color.cpp:313:

        return Color(static_cast<int>(multiplier * r * scaleFactor),
static_cast<int>(multiplier * g * scaleFactor),
static_cast<int>(multiplier * b * scaleFactor),
alpha());
}


actcd19/main/c/csound/csound_6.10.0~dfsg-2/Opcodes/stk/stkOpcodes.cpp:361:

              if(*kcontroller1 != oldkcontroller1 || *kvalue1 != oldkvalue1)
{
instrument->controlChange(static_cast<int>(*kcontroller1), *kvalue1);
oldkcontroller1 = *kcontroller1;
oldkvalue1 = *kvalue1;


actcd19/main/c/codequery/codequery_0.21.1+dfsg1-1/scintilla/src/Editor.cxx:7492:

    
case SCI_BRACEBADLIGHT:
SetBraceHighlight(static_cast<int>(wParam), -1, STYLE_BRACEBAD);
break;


actcd19/main/c/chromium/chromium_72.0.3626.121-1/content/renderer/media/stream/media_stream_constraints_util_video_content.cc:312:

        default_height = candidates.resolution_set().max_height();
default_width =
static_cast<int>(std::round(default_height * default_aspect_ratio));
} else if (candidates.has_explicit_max_width()) {
default_width = candidates.resolution_set().max_width();


actcd19/main/r/ring/ring_20190215.1.f152c98~ds1-1/lrc/src/collectionmodel.cpp:95:

          roles[static_cast<int>(Role::supportEdit          ) ] = "supportEdit"           ;
roles[static_cast<int>(Role::supportProbe ) ] = "supportProbe" ;
roles[static_cast<int>(Role::supportAdd ) ] = "supportAdd" ;
roles[static_cast<int>(Role::supportSave_all ) ] = "supportSave_all" ;
roles[static_cast<int>(Role::supportClear ) ] = "supportClear" ;


actcd19/main/i/icinga2/icinga2_2.10.1-1/lib/icinga/apievents.cpp:205:

    		result->Set("service", service->GetShortName());

result->Set("state", service ? static_cast<int>(service->GetState()) : static_cast<int>(host->GetState()));
result->Set("state_type", checkable->GetStateType());


actcd19/main/i/isc-kea/isc-kea_1.5.0-1/src/bin/dhcp4/tests/host_options_unittest.cc:314:

        Pkt4Ptr resp = client.getContext().response_;
// Make sure that the server has responded with DHCPACK.
ASSERT_EQ(DHCPACK, static_cast<int>(resp->getType()));

if (!stateless) {


actcd19/main/s/sqlitebrowser/sqlitebrowser_3.10.1-1/libs/qscintilla/src/Document.cpp:609:

    		char charBytes[UTF8MaxBytes] = {static_cast<char>(leadByte),0,0,0};
for (int b=1; b<widthCharBytes && ((start+b) < Length()); b++)
charBytes[b] = cb.CharAt(static_cast<int>(start+b));
int utf8status = UTF8Classify(reinterpret_cast<const unsigned char *>(charBytes), widthCharBytes);
if (utf8status & UTF8MaskInvalid)


actcd19/main/p/pcl/pcl_1.8.0+dfsg1-6/filters/include/pcl/filters/impl/extract_indices.hpp:136:

        // Set up the full indices set
std::vector<int> full_indices (input_->points.size ());
for (int fii = 0; fii < static_cast<int> (full_indices.size ()); ++fii) // fii = full indices iterator
full_indices[fii] = fii;


actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/third_party/WebKit/Source/platform/bindings/V8Binding.h:264:

        return v8::String::NewFromOneByte(
isolate, reinterpret_cast<const uint8_t*>(string.Characters8()),
v8::NewStringType::kNormal, static_cast<int>(string.length()))
.ToLocalChecked();
}


actcd19/main/v/vtk7/vtk7_7.1.1+dfsg1-12/Interaction/Widgets/vtkOrientationMarkerWidget.cxx:722:

      }

this->StartPosition[0] = static_cast<int>( newPos[0] );
this->StartPosition[1] = static_cast<int>( newPos[3] );


actcd19/main/a/anjuta-extras/anjuta-extras_3.26.0-5/plugins/scintilla/scintilla/src/ScintillaBase.cxx:291:

    	}
rcac.right = rcac.left + widthLB;
rcac.bottom = static_cast<XYPOSITION>(std::min(static_cast<int>(rcac.top) + heightLB, static_cast<int>(rcPopupBounds.bottom)));
ac.lb->SetPositionRelative(rcac, wMain);
ac.lb->SetFont(vs.styles[STYLE_DEFAULT].font);


actcd19/main/l/lammps/lammps_0~20181211.gitad1b1897d+dfsg1-1/src/BODY/pair_body_rounded_polyhedron.cpp:739:

    
if (fabs(t-1) < EPSILON) {
if (static_cast<int>(discrete[ifirst+npi2][6]) == 1)
continue;
else {


actcd19/main/q/qtbase-opensource-src/qtbase-opensource-src_5.10.1+dfsg-5/src/widgets/dialogs/qfiledialog.cpp:3013:

        q->setAcceptMode(static_cast<QFileDialog::AcceptMode>(options->acceptMode()));
q->setViewMode(static_cast<QFileDialog::ViewMode>(options->viewMode()));
q->setOptions(static_cast<QFileDialog::Options>(static_cast<int>(options->options())));
if (!options->sidebarUrls().isEmpty())
q->setSidebarUrls(options->sidebarUrls());


actcd19/main/c/chromium/chromium_72.0.3626.121-1/chrome/browser/browsing_data/counters/site_settings_counter_unittest.cc:66:

      void SetDeletionPeriodPref(browsing_data::TimePeriod period) {
profile()->GetPrefs()->SetInteger(browsing_data::prefs::kDeleteTimePeriod,
static_cast<int>(period));
}


actcd19/main/q/qpdfview/qpdfview_0.4.17~beta1+git20180709-2/sources/settingsdialog.cpp:861:

        QComboBox* comboBox = new QComboBox(this);
comboBox->addItem(QShortcut::tr("Shift"), static_cast< int >(Qt::ShiftModifier));
comboBox->addItem(QShortcut::tr("Ctrl"), static_cast< int >(Qt::ControlModifier));
comboBox->addItem(QShortcut::tr("Alt"), static_cast< int >(Qt::AltModifier));
comboBox->addItem(QShortcut::tr("Shift and Ctrl"), static_cast< int >(Qt::ShiftModifier | Qt::ControlModifier));


actcd19/main/i/isc-kea/isc-kea_1.5.0-1/src/lib/dns/rdata/generic/detail/ds_like.h:198:

            return (lexical_cast<string>(static_cast<int>(tag_)) +
" " + lexical_cast<string>(static_cast<int>(algorithm_)) +
" " + lexical_cast<string>(static_cast<int>(digest_type_)) +
" " + encodeHex(digest_));
}


actcd19/main/i/isc-kea/isc-kea_1.5.0-1/src/lib/log/logger_level_impl.cc:94:

            // below.
int dbglevel = MIN_DEBUG_LEVEL +
static_cast<int>(log4cplus::DEBUG_LOG_LEVEL) -
static_cast<int>(loglevel);
if (dbglevel > MAX_DEBUG_LEVEL) {


actcd19/main/q/qscintilla2/qscintilla2_2.9.3+dfsg-5/src/Editor.cpp:6064:

    
case SCI_ADDTABSTOP:
if (view.AddTabstop(static_cast<int>(wParam), static_cast<int>(lParam))) {
DocModification mh(SC_MOD_CHANGETABSTOPS, 0, 0, 0, 0, static_cast<int>(wParam));
NotifyModified(pdoc, mh, NULL);


actcd19/main/o/openjfx/openjfx_11.0.2+1-1/modules/javafx.web/src/main/native/Source/JavaScriptCore/ftl/FTLOSRExitCompiler.cpp:483:

            VirtualRegister reg = exit.m_descriptor->m_values.virtualRegisterForIndex(index);

if (reg.isLocal() && reg.toLocal() < static_cast<int>(baselineVirtualRegistersForCalleeSaves))
continue;


actcd19/main/c/chromium/chromium_72.0.3626.121-1/base/pickle.cc:243:

          capacity_after_header_(kCapacityReadOnly),
write_offset_(0) {
if (data_len >= static_cast<int>(sizeof(Header)))
header_size_ = data_len - header_->payload_size;


actcd19/main/t/trilinos/trilinos_12.12.1-7/packages/tpetra/core/test/MultiVector/Issue364.cpp:151:

        static_assert (Kokkos::Impl::is_view<ViewType>::value,
"ViewType must be a Kokkos::View specialization.");
static_assert (static_cast<int> (ViewType::rank) == 1,
"ViewType must be a 1-D Kokkos::View.");
TpetraTest::NegateAllEntries<ViewType>::run (x);


actcd19/main/l/lordsawar/lordsawar_0.3.1-4/src/editor/main-window.cpp:601:

            forest = static_cast<int>(forest / factor);
swamp = static_cast<int>(swamp / factor);
hills = static_cast<int>(hills / factor);
mountains = static_cast<int>(mountains / factor);
}


actcd19/main/w/webkit2gtk/webkit2gtk_2.22.7-1/Tools/TestWebKitAPI/Tests/WebKitGLib/TestUIClient.cpp:98:

                g_assert_cmpint(m_geometry.height, ==, other.m_geometry.height);
#endif
g_assert_cmpint(static_cast<int>(m_toolbarVisible), ==, static_cast<int>(other.m_toolbarVisible));
g_assert_cmpint(static_cast<int>(m_statusbarVisible), ==, static_cast<int>(other.m_statusbarVisible));
g_assert_cmpint(static_cast<int>(m_scrollbarsVisible), ==, static_cast<int>(other.m_scrollbarsVisible));


actcd19/main/r/re2/re2_20190101+dfsg-2/re2/regexp.h:629:

                                        Regexp::ParseFlags b) {
return static_cast<Regexp::ParseFlags>(
static_cast<int>(a) | static_cast<int>(b));
}


actcd19/main/q/qtwebkit-opensource-src/qtwebkit-opensource-src_5.212.0~alpha2-20/Source/ThirdParty/ANGLE/src/common/mathutil.cpp:46:

        const float max_c = std::max<float>(std::max<float>(red_c, green_c), blue_c);
const float exp_p = std::max<float>(-g_sharedexp_bias - 1, floor(log(max_c))) + 1 + g_sharedexp_bias;
const int max_s = static_cast<int>(floor((max_c / (pow(2.0f, exp_p - g_sharedexp_bias - g_sharedexp_mantissabits))) + 0.5f));
const int exp_s = static_cast<int>((max_s < pow(2.0f, g_sharedexp_mantissabits)) ? exp_p : exp_p + 1);


actcd19/main/libo/libosl/libosl_0.8.0-1.4/core/osl/basic_type.h:1145:

        int promoteMask() const {
assert(isNormal());
return (static_cast<int>(move)&(1<<BitOffsetPromote));
}
bool isPromotion() const { assert(isNormal()); return (move & (1<<BitOffsetPromote))!=0; }