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/cataclysm-dda/cataclysm-dda_0.C+git20190228.faafa3a-2/src/ui.cpp:793:

            }
} else {
if( fselected >= static_cast<int>( fentries.size() ) ) {
fselected = 0;
}


actcd19/main/o/ola/ola_0.10.7.nojsmin-1/plugins/artnet/ArtNetNode.cpp:1062:

                  << static_cast<int>(packet.net_address)
<< " which doesn't match our net address "
<< static_cast<int>(m_net_address) << ", discarding";
return;
}


actcd19/main/q/qtwebkit/qtwebkit_2.3.4.dfsg-10/Source/WebCore/dom/CharacterData.cpp:243:

    int CharacterData::maxCharacterOffset() const
{
return static_cast<int>(length());
}


actcd19/main/f/firefox/firefox_65.0.1-1/media/webrtc/trunk/webrtc/modules/audio_processing/aec/echo_cancellation.cc:488:

        // Use a mix between regular average and upper part average.
dtmp = kUpWeight * a_nlp.himean + (1 - kUpWeight) * a_nlp.average;
metrics->aNlp.average = static_cast<int>(dtmp);
} else {
metrics->aNlp.average = kOffsetLevel;


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

    
case SCI_EXPANDCHILDREN:
FoldExpand(static_cast<int>(wParam), SC_FOLDACTION_EXPAND, static_cast<int>(lParam));
break;


actcd19/main/libm/libmwaw/libmwaw_0.3.14-1/src/lib/ClarisWksTable.cxx:225:

      }

auto numTableBorders = static_cast<int>(table.m_bordersList.size());
// now look for border id: L,T,R,B
for (int w = 0; w < 4; w++) {


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

    			const size_t maxFoldingExpansion = 4;
std::vector<char> searchThing(lengthFind * UTF8MaxBytes * maxFoldingExpansion + 1);
const int lenSearch = static_cast<int>(
pcf->Fold(&searchThing[0], searchThing.size(), search, lengthFind));
char bytes[UTF8MaxBytes + 1];


actcd19/main/e/ecflow/ecflow_4.13.0-1/Viewer/ecflowUI/src/AbstractNodeView.cpp:739:

            //When layout() is called with the given arguments it is delayed to
//this point to gain performance!
const int itemsCount=static_cast<int>(viewItems_.size());
int count=viewItems_[item].total;
for(int i = item + count+1; i < itemsCount; i++)


actcd19/main/m/mame/mame_0.182-1/3rdparty/bgfx/3rdparty/scintilla/win32/PlatWin.cxx:1868:

    	::SetWindowPos(reinterpret_cast<HWND>(wid),
0, static_cast<int>(rc.left), static_cast<int>(rc.top),
static_cast<int>(rc.Width()), static_cast<int>(rc.Height()), SWP_NOZORDER | SWP_NOACTIVATE);
}


actcd19/main/q/qbs/qbs_1.12.2+dfsg-2/src/app/qbs/parser/commandlineoption.cpp:387:

    {
QStringList result;
for (int i = static_cast<int>(LoggerMinLevel); i <= static_cast<int>(LoggerMaxLevel); ++i)
result << logLevelName(static_cast<LoggerLevel>(i));
return result;


actcd19/main/p/presage/presage_0.9.1-2.1/apps/gtk/gprompter/scintilla/src/Editor.cxx:3574:

    						const std::string spaceText(numSpaces, ' ');
const int lengthInserted = pdoc->InsertString(caretPosition, spaceText.c_str(),
static_cast<int>(spaceText.length()));
sel.Range(r) = SelectionRange(caretPosition + lengthInserted);
}


actcd19/main/libr/libreoffice/libreoffice_6.1.5-1/vcl/win/gdi/gdiimpl.cxx:1615:

            if ( !mrParent.isPrinter() )
{
PatBlt( mrParent.getHDC(), static_cast<int>(nX), static_cast<int>(nY), static_cast<int>(nWidth), static_cast<int>(nHeight),
mbXORMode ? PATINVERT : PATCOPY );
}


actcd19/main/g/goldencheetah/goldencheetah_3.5~DEV1810-1/src/Charts/RideEditor.cpp:45:

    static QString xsstring(int x, RideFile::SeriesType series)
{
return QString("%1:%2").arg((int)x).arg(static_cast<int>(series));
}
static void unxsstring(QString val, int &x, RideFile::SeriesType &series)


actcd19/main/g/gtkmm3.0/gtkmm3.0_3.24.0-2/gtk/gtkmm/notebook.cc:496:

    void Notebook::set_scrollable(bool scrollable)
{
gtk_notebook_set_scrollable(gobj(), static_cast<int>(scrollable));
}


actcd19/main/x/xbmc-pvr-addons/xbmc-pvr-addons_13.0+git20140512+g91cc731+dfsg1-3/lib/platform/util/StdString.h:3267:

    
MYSIZE nIdx = this->find(szSub, static_cast<MYSIZE>(nStart));
return static_cast<int>(MYBASE::npos == nIdx ? -1 : nIdx);
}


actcd19/main/m/mixxx/mixxx_2.2.0~dfsg-1/src/effects/builtin/linkwitzriley8eqeffect.cpp:106:

    
if (pState->m_oldSampleRate != bufferParameters.sampleRate() ||
(pState->m_loFreq != static_cast<int>(m_pLoFreqCorner->get())) ||
(pState->m_hiFreq != static_cast<int>(m_pHiFreqCorner->get()))) {
pState->m_loFreq = static_cast<int>(m_pLoFreqCorner->get());


actcd19/main/libs/libsbml/libsbml_5.17.2+dfsg-3/src/sbml/packages/distrib/sbml/DistribParetoDistribution.cpp:1329:

    DistribParetoDistribution_isSetShape(const DistribParetoDistribution_t * dpd)

{
return (dpd != NULL) ? static_cast<int>(dpd->isSetShape()) : 0;
}


actcd19/main/n/nodejs/nodejs_10.15.2~dfsg-1/deps/v8/src/compiler/js-call-reducer.cc:3237:

        Node* bound_this = NodeProperties::GetValueInput(target, 1);
int const bound_arguments_length =
static_cast<int>(CreateBoundFunctionParametersOf(target->op()).arity());

// Patch the {node} to use [[BoundTargetFunction]] and [[BoundThis]].


actcd19/main/c/chromium/chromium_72.0.3626.121-1/v8/src/arm64/assembler-arm64.cc:324:

      auto existing = entry_map.find(data);
if (existing == entry_map.end()) {
entry_map[data] = static_cast<int>(entries_.size());
entries_.push_back(std::make_pair(data, std::vector<int>(1, offset)));
return true;


actcd19/main/c/clustalx/clustalx_2.1+lgpl-6/clustalW/substitutionMatrix/SubMatrix.cpp:468:

                                static_cast<int>(_transitionWeight * matrix[0][0]);
matrix[(*_matXref)[11]][(*_matXref)[2]] =
static_cast<int>(_transitionWeight * matrix[0][0]);
matrix[(*_matXref)[2]][(*_matXref)[12]] =
static_cast<int>(_transitionWeight * matrix[0][0]);


actcd19/main/c/chromium/chromium_72.0.3626.121-1/chrome/browser/ui/views/payments/payment_sheet_view_controller_browsertest.cc:70:

                             DialogViewID::PAYMENT_SHEET_SUMMARY_SECTION)));
EXPECT_NE(nullptr,
dialog_view()->GetViewByID(static_cast<int>(
DialogViewID::PAYMENT_SHEET_PAYMENT_METHOD_SECTION_BUTTON)));
EXPECT_EQ(nullptr,


actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/third_party/protobuf/src/google/protobuf/api.pb.cc:1293:

      if (this->response_type_url().size() > 0) {
::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
this->response_type_url().data(), static_cast<int>(this->response_type_url().length()),
::google::protobuf::internal::WireFormatLite::SERIALIZE,
"google.protobuf.Method.response_type_url");


actcd19/main/g/gcc-avr/gcc-avr_5.4.0+Atmel3.6.1-2/gcc/gcc/go/gofrontend/import.cc:799:

      Named_object* named_object = gogo->lookup_global(name);
go_assert(named_object != NULL && named_object->is_type());
int index = - static_cast<int>(code);
go_assert(index > 0
&& static_cast<size_t>(index) < this->builtin_types_.size());


actcd19/main/k/keepassxc/keepassxc_2.3.4+dfsg.1-1/src/format/Kdbx4Writer.cpp:157:

    
CHECK_RETURN_FALSE(writeInnerHeaderField(outputDevice, KeePass2::InnerHeaderFieldID::InnerRandomStreamID,
Endian::sizedIntToBytes(static_cast<int>(KeePass2::ProtectedStreamAlgo::ChaCha20),
KeePass2::BYTEORDER)));
CHECK_RETURN_FALSE(writeInnerHeaderField(outputDevice, KeePass2::InnerHeaderFieldID::InnerRandomStreamKey,


actcd19/main/k/kdepimlibs/kdepimlibs_4.14.10-10/kcalcore/recurrencerule.cpp:1691:

        if (d->mTimedRepetition) {
// It's a simple sub-daily recurrence with no constraints
int n = static_cast<int>((d->mDateStart.secsTo_long(fromDate) + 1) % d->mTimedRepetition);
KDateTime next = fromDate.addSecs(d->mTimedRepetition - n + 1);
return d->mDuration < 0 || !endDt().isValid() || next <= endDt() ? next : KDateTime();


actcd19/main/s/salmon/salmon_0.12.0+ds1-1/include/spdlog/details/os.h:324:

    #endif

return static_cast<int>(offset_seconds / 60);
#endif
}


actcd19/main/c/connectome-workbench/connectome-workbench_1.3.2-1/src/GuiQt/SplashScreen.cxx:373:

        QTreeWidgetItem* firstItem = NULL;

const int32_t numRecentSpecFiles = static_cast<int>(recentSpecFiles.size());
for (int32_t i = 0; i < numRecentSpecFiles; i++) {
QString path;


actcd19/main/m/mame/mame_0.206+dfsg.1-1/3rdparty/bimg/3rdparty/astc/astc_compress_symbolic.cpp:1208:

    	{
int avg_red = static_cast < int >(floor(avg_color.x + 0.5f));
int avg_green = static_cast < int >(floor(avg_color.y + 0.5f));
int avg_blue = static_cast < int >(floor(avg_color.z + 0.5f));


actcd19/main/a/actor-framework/actor-framework_0.16.3-0.1/libcaf_core/caf/spawn_options.hpp:45:

    constexpr spawn_options operator+(const spawn_options& lhs,
const spawn_options& rhs) {
return static_cast<spawn_options>(static_cast<int>(lhs) |
static_cast<int>(rhs));
}


actcd19/main/i/insighttoolkit4/insighttoolkit4_4.12.2-dfsg1-4/Modules/Numerics/FEM/include/itkMetaFEMObjectConverter.hxx:282:

           o1->GetElementArray().resize(1);

int dim = static_cast<int>( load->m_Undeformed.size() );
vnl_vector<double> source;
vnl_vector<double> target;


actcd19/main/g/gdal/gdal_2.4.0+dfsg-1/ogr/ogrsf_frmts/vrt/ogrvrtlayer.cpp:127:

        {
CPLDebug("VRT", "%d features read on layer '%s'.",
static_cast<int>(m_nFeaturesRead),
poFeatureDefn->GetName());
}


actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/third_party/WebKit/Source/core/css/MediaQueryEvaluator.cpp:626:

        float number;
return NumberValue(value, number) &&
CompareValue(have3d_rendering, static_cast<int>(number), op);
}
return return_value_if_no_parameter;


actcd19/main/n/node-mapnik/node-mapnik_3.7.2+dfsg-5/.pc/new_instance.patch/src/mapnik_image.cpp:2945:

            }

mapnik::image_rgba8 im(static_cast<int>(svg_width), static_cast<int>(svg_height), true, true);
agg::rendering_buffer buf(im.bytes(), im.width(), im.height(), im.row_size());
pixfmt pixf(buf);


actcd19/main/c/chromium/chromium_72.0.3626.121-1/v8/src/constant-pool.h:141:

        bool overflow() const {
return (overflow_start >= 0 &&
overflow_start < static_cast<int>(entries.size()));
}
int regular_reach_bits;


actcd19/main/h/hydrogen/hydrogen_0.9.7-6/src/gui/src/InstrumentEditor/LayerPreview.cpp:422:

    int LayerPreview::getMidiVelocityFromRaw( const float raw )
{
return static_cast<int> (raw * 127);
}


actcd19/main/c/chromium/chromium_72.0.3626.121-1/v8/src/compiler/js-typed-lowering.cc:1542:

      ConstructParameters const& p = ConstructParametersOf(node->op());
DCHECK_LE(2u, p.arity());
int const arity = static_cast<int>(p.arity() - 2);
Node* target = NodeProperties::GetValueInput(node, 0);
Type target_type = NodeProperties::GetType(target);


actcd19/main/u/uim/uim_1.8.8-3/xim/helper.cpp:125:

                    return;
}
len = static_cast<int>(strlen(buf) + strlen(tmp));
buf = (char *)realloc(buf, sizeof(char) * len + 1);
if (!buf) {


actcd19/main/v/vtk6/vtk6_6.3.0+dfsg2-2/IO/Export/vtkGL2PSExporter.cxx:539:

             ++tuple)
{
act2d->SetVisibility(static_cast<int>(act2dVis->GetComponent(tuple, component)));
}
}


actcd19/main/t/trilinos/trilinos_12.12.1-7/packages/kokkos/core/src/impl/Kokkos_BitOps.hpp:106:

    int bit_scan_reverse( unsigned i )
{
enum { shift = static_cast<int>( sizeof(unsigned) * CHAR_BIT - 1 ) };
#if defined( __CUDA_ARCH__ )
return shift - __clz(i);


actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/url/scheme_host_port.cc:43:

        // Success!  Assert that there's no extra garbage.
canon_host_output.Complete();
DCHECK_EQ(host_info.out_host.len, static_cast<int>(canon_host.length()));
} else {
// Empty host, or canonicalization failed.


actcd19/main/m/mysql-5.7/mysql-5.7_5.7.25-1/boost/boost_1_59_0/boost/numeric/odeint/stepper/bulirsch_stoer_dense_out.hpp:244:

                            reject = false;
if( work[k-2] < KFAC2*work[k-1] )
m_current_k_opt = max BOOST_PREVENT_MACRO_SUBSTITUTION( 2 , static_cast<int>(m_current_k_opt)-1 );
if( (work[k] < KFAC2*work[m_current_k_opt]) && !m_last_step_rejected )
m_current_k_opt = min BOOST_PREVENT_MACRO_SUBSTITUTION( static_cast<int>(m_k_max)-1 , static_cast<int>(k) );


actcd19/main/n/nodejs/nodejs_10.15.2~dfsg-1/deps/v8/src/wasm/wasm-objects.cc:1430:

      DCHECK_GE(kMaxInt, ref.length());
return isolate->factory()->NewStringFromUtf8SubString(
module_bytes, static_cast<int>(ref.offset()),
static_cast<int>(ref.length()));
}


actcd19/main/p/paraview/paraview_5.4.1+dfsg4-3.1/VTK/IO/Geometry/vtkCGMWriter.cxx:755:

            {
scaledPts->GetPoint(p[i], x);
points[i].x = static_cast<int>(x[0]);
points[i].y = static_cast<int>(x[1]);
}


actcd19/main/c/chromium/chromium_72.0.3626.121-1/crypto/secure_hash_unittest.cc:33:

      ctx->Finish(output3, sizeof(output3));
for (size_t i = 0; i < crypto::kSHA256Length; i++)
EXPECT_EQ(kExpectedHashOfInput3[i], static_cast<int>(output3[i]));
}


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

        // Compute strides
m_dimensions = m_impl.dimensions();
if (static_cast<int>(Layout) == static_cast<int>(ColMajor)) {
m_strides[0] = 1;
for (int i = 1; i < NumDims; ++i) {


actcd19/main/libm/libmwaw/libmwaw_0.3.14-1/src/lib/MacDraft5Parser.cxx:2003:

    
for (int i=0; i<3; ++i) { // g0=9,g1=0,g2=2|3|e
val=static_cast<int>(input->readLong(2));
if (val)
f << "g" << i << "=" << val << ",";


actcd19/main/b/bambootracker/bambootracker_0.1.4-1/BambooTracker/gui/pattern_editor/pattern_editor_panel.cpp:1642:

    			10,
curPos_.order,
static_cast<int>(bt_->getPatternSizeFromOrderNumber(curSongNum_, curPos_.order) - 1)
};
setSelectedRectangle(start, end);


actcd19/main/v/vtk7/vtk7_7.1.1+dfsg1-12/Imaging/Color/vtkImageQuantizeRGBToIndex.cxx:193:

              if (static_cast<int>(v[0]) < max[0] &&
static_cast<int>(v[1]) < max[1] &&
static_cast<int>(v[2]) < max[2] )
{
histogram[0][static_cast<unsigned short>(v[0])]++;


actcd19/main/q/qgis/qgis_2.18.28+dfsg-2/src/plugins/compass/qgscompassplugingui.cpp:106:

        const double PI = 3.14159265358979323846;
double myRadiansDouble = ( PI / 180 ) * theRotationInt;
int xShift = static_cast<int>((
( centerXDouble * cos( myRadiansDouble ) ) +
( centerYDouble * sin( myRadiansDouble ) )


actcd19/main/libm/libmwaw/libmwaw_0.3.14-1/src/lib/MWAWHeader.cxx:885:

        if (vers > 0 && input->size()>16) {
input->seek(16, librevenge::RVNG_SEEK_SET);
auto value=static_cast<int>(input->readULong(2));
switch (value) {
case 1:


actcd19/main/libr/libreoffice/libreoffice_6.1.5-1/editeng/source/items/borderline.cxx:646:

        if ( static_cast<int>(m_nStyle) < int(SAL_N_ELEMENTS(aStyleIds)) )
{
const char* pResId = aStyleIds[static_cast<int>(m_nStyle)];
aStr += EditResId(pResId);
}


actcd19/main/m/mame/mame_0.182-1/3rdparty/bgfx/3rdparty/scintilla/src/Editor.cxx:6663:

    
case SCI_TOGGLEFOLD:
FoldLine(static_cast<int>(wParam), SC_FOLDACTION_TOGGLE);
break;


actcd19/main/c/chromium/chromium_72.0.3626.121-1/v8/src/inspector/v8-profiler-agent-impl.cc:115:

      for (int i = 0; i < count; i++) {
uint64_t ts = v8profile->GetSampleTimestamp(i);
array->addItem(static_cast<int>(ts - lastTime));
lastTime = ts;
}


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

    
case SCI_INDICATORVALUEAT:
return pdoc->decorations.ValueAt(static_cast<int>(wParam), static_cast<int>(lParam));

case SCI_INDICATORSTART:


actcd19/non-free/m/mgltools-utpackages/mgltools-utpackages_1.5.7-3/multisdfDIST/CGAL-3.1/include/CGAL/Homogeneous/function_objects.h:2307:

    	    static_cast<Orientation>(
static_cast<int>( save)
* static_cast<int>( orientationH2( p.hy(), p.hz(), p.hw(),
q.hy(), q.hz(), q.hw(),
s.hy(), s.hz(), s.hw())) );


actcd19/main/o/openscenegraph-3.4/openscenegraph-3.4_3.4.1+dfsg1-5/src/osgShadow/ConvexPolyhedron.cpp:1035:

            return -( negative + colinear );

if( (positive + colinear) == static_cast<int>(face.vertices.size()) )
return +( positive + colinear );


actcd19/main/p/presage/presage_0.9.1-2.1/apps/gtk/gprompter/scintilla/src/Indicator.cxx:94:

    		int x = static_cast<int>(rc.left);
while (x < rc.right) {
surface->MoveTo(x, static_cast<int>(rc.top) + 2);
int endX = x+3;
int endY = static_cast<int>(rc.top) - 1;


actcd19/main/c/chromium/chromium_72.0.3626.121-1/chrome/browser/ui/webui/chromeos/login/user_board_screen_handler.cc:95:

        const base::string16& initial_value) {
CallJSWithPrefix("login.AccountPickerScreen.setAuthType", account_id,
static_cast<int>(auth_type), base::Value(initial_value));
}


actcd19/main/u/urdfdom/urdfdom_1.0.3-1/urdf_parser/test/gtest/src/gtest.cc:3098:

        ColoredPrintf(COLOR_YELLOW,
"Note: This is test shard %d of %s.\n",
static_cast<int>(shard_index) + 1,
internal::posix::GetEnv(kTestTotalShards));
}


actcd19/main/m/mecab/mecab_0.996-6/src/writer.cpp:286:

                    break;  // space
// start position
case 's': *os << static_cast<int>(
node->surface - lattice->sentence());
break;


actcd19/main/v/vtk6/vtk6_6.3.0+dfsg2-2/Filters/Geometry/vtkStructuredGridConnectivity.h:941:

      // Sanity check
assert("pre: gridID is out-of-bounds" &&
(gridID >=0) && (gridID < static_cast<int>(this->NumberOfGrids)));
assert("pre: BlockTopology has not been properly allocated" &&
(this->NumberOfGrids == this->BlockTopology.size()));


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

          static_cast<int>(space()->Available()));          \
isolate_->counters()->space##_bytes_committed()->Set( \
static_cast<int>(space()->CommittedMemory())); \
isolate_->counters()->space##_bytes_used()->Set( \
static_cast<int>(space()->SizeOfObjects()));


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

        vol0 = list[n++];
t0 = list[n++];
int m = static_cast<int> (list[n++]);
if (pstat_flag && m == mpchain) {
for (int ich = 0; ich < mpchain; ich++)


actcd19/main/k/kdepim4/kdepim4_4.14.10-7/messagelist/utils/themeeditor.cpp:951:

                    grp->addAction( act );
act = childmenu->addAction( i18nc("Keep a empty space in the list if the mail does not have the attribute, e.g. Important mark on a non important mail", "Keep Empty Space") );
act->setData( QVariant( static_cast< int >( 0 ) ) );
act->setCheckable( true );
act->setChecked( ! ( mSelectedThemeContentItem->softenByBlendingWhenDisabled() || mSelectedThemeContentItem->hideWhenDisabled() ) );


actcd19/main/c/chromium/chromium_72.0.3626.121-1/remoting/ios/facade/host_list_fetcher.cc:23:

    
static_assert(static_cast<int>(net::URLFetcher::RESPONSE_CODE_INVALID) !=
static_cast<int>(
HostListFetcher::ResponseCode::RESPONSE_CODE_CANCELLED),
"RESPONSE_CODE_INVALID collided with RESPONSE_CODE_CANCELLED.");


actcd19/main/p/pcl/pcl_1.8.0+dfsg1-6/features/include/pcl/features/impl/intensity_spin.hpp:82:

        {
// If sigma is zero, update the histogram with no smoothing kernel
int d_idx = static_cast<int> (d);
int i_idx = static_cast<int> (i);
intensity_spin_image (i_idx, d_idx) += 1;


actcd19/main/libm/libmwaw/libmwaw_0.3.14-1/src/lib/RagTime5Text.cxx:1617:

          }
else if (actPos+13==endPos || actPos+18==endPos) { // fSz41|46
val=static_cast<int>(input->readLong(1)); // always 1
if (val!=1) f << "g0=" << val << ",";
if (actPos+18==endPos) {


actcd19/main/o/openscenegraph/openscenegraph_3.2.3+dfsg1-2/OpenSceneGraph/src/osgPlugins/lwo/Surface.cpp:284:

    
if (geo->getVertexArray()) {
num_points = static_cast<int>(geo->getVertexArray()->getNumElements());
}


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

        int right = static_cast<int>(pixels->item(offset + cPixelSize + cAlphaChannelOffset));
offset += widthMultipliedByPixelSize;
int bottom = static_cast<int>(pixels->item(offset + cAlphaChannelOffset));
int bottomRight = static_cast<int>(pixels->item(offset + cPixelSize + cAlphaChannelOffset));
normalVector.setX(-(center << 1) + (right << 1) - bottom + bottomRight);


actcd19/main/k/kde4libs/kde4libs_4.14.38-3/khtml/misc/khtmllayout.h:148:

    		    return value();
case Percent:
return static_cast<int>(round(maxValue * percent() / 100.0));
case Auto:
default:


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

    
case SCI_SETSEARCHFLAGS:
searchFlags = static_cast<int>(wParam);
break;


actcd19/main/t/trilinos/trilinos_12.12.1-7/packages/epetraext/src/EpetraExt_ProductOperator.h:410:

    {
TEUCHOS_TEST_FOR_EXCEPTION(
k < 0 || static_cast<int>(Op_.size())-1 < k, std::logic_error
,"Epetra::ProductOperator: Error, k = "<<k<< " is not in the range [0,"<<Op_.size()-1<<"]!"
);


actcd19/main/c/chromium/chromium_72.0.3626.121-1/third_party/angle/util/random_utils.h:51:

        const T &randomSelect(const std::vector<T> &elements)
{
return elements.at(randomIntBetween(0, static_cast<int>(elements.size()) - 1));
}


actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/net/cookies/cookie_monster_unittest.cc:2152:

           CookieMonster::kMaxCookies - CookieMonster::kPurgeCookies}};

for (int ci = 0; ci < static_cast<int>(arraysize(test_cases)); ++ci) {
const TestCase* test_case = &test_cases[ci];
std::unique_ptr<CookieMonster> cm = CreateMonsterFromStoreForGC(


actcd19/main/q/qtquickcontrols-opensource-src/qtquickcontrols-opensource-src_5.11.3-2/tests/benchmarks/startup/startup_bench.cpp:73:

            int r = f();
if (r == 0)
printf("%d\n", static_cast<int>(t.elapsed()));
else
return r;


actcd19/main/g/gem/gem_0.94-1/src/Pixes/pix_lumaoffset.cpp:279:

    
const int nOffsetScale=static_cast<int>(m_OffsetScale);
const int nLineGap=static_cast<int>(m_LineGap);

Pete_ZeroMemory(pOutput,(nNumPixels*sizeof(U8)));


actcd19/main/c/cgal/cgal_4.13-1/include/CGAL/CORE/Real.h:321:

      // specialized for two long values
static Real eval(long a, long b) {
if (flrLg(a) + flrLg(b) >= static_cast<int>(LONG_BIT-2))
return BigInt(a)*BigInt(b);
else


actcd19/main/k/krita/krita_4.1.7+dfsg-1/libs/ui/widgets/kis_double_widget.cc:124:

    
if (value < 0) {
intValue = static_cast<int>(value * 100 - 0.5);
} else {
intValue = static_cast<int>(value * 100 + 0.5);


actcd19/main/m/mame/mame_0.182-1/3rdparty/bgfx/3rdparty/scintilla/src/ScintillaBase.cxx:899:

    
case SCI_REGISTERRGBAIMAGE:
ac.lb->RegisterRGBAImage(static_cast<int>(wParam), static_cast<int>(sizeRGBAImage.x), static_cast<int>(sizeRGBAImage.y),
reinterpret_cast<unsigned char *>(lParam));
break;


actcd19/main/libm/libmwaw/libmwaw_0.3.14-1/src/lib/NisusWrtParser.cxx:2170:

      ftInfo.m_distToDocument = static_cast<int>(input->readLong(2));
ftInfo.m_distSeparator = static_cast<int>(input->readLong(2));
ftInfo.m_separatorLength = static_cast<int>(input->readLong(2));
f << "footnote=[" << ftInfo << "],";
rsrcAscii().addDelimiter(input->tell(), '|');


actcd19/main/m/mame/mame_0.206+dfsg.1-1/src/mame/audio/tx1.cpp:108:

    void tx1_sound_device::device_start()
{
static const int r0[4] = { static_cast<int>(390e3), static_cast<int>(180e3), static_cast<int>(180e3), static_cast<int>(180e3) };
static const int r1[3] = { static_cast<int>(180e3), static_cast<int>(390e3), static_cast<int>(56e3) };
static const int r2[3] = { static_cast<int>(390e3), static_cast<int>(390e3), static_cast<int>(180e3) };


actcd19/main/g/gem/gem_0.94-1/src/Gem/Image.cpp:387:

    {
while(datasize--) {
*leftPix = CLAMP_HIGH(static_cast<int>(*leftPix) + static_cast<int>
(*rightPix));
leftPix++;


actcd19/main/c/codeblocks/codeblocks_16.01+dfsg-2.1/src/sdk/wxscintilla/src/scintilla/src/Editor.cxx:6615:

    		return vs.caretLineAlpha;
case SCI_SETCARETLINEBACKALPHA:
vs.caretLineAlpha = static_cast<int>(wParam);
InvalidateStyleRedraw();
break;


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

      std::vector<ShardState> shard_states(FLAGS_shards + 1);
std::deque<Reader> readers;
while (static_cast<int>(readers.size()) < FLAGS_readers) {
readers.emplace_back(&shard_states, db_raw);
}


actcd19/main/c/codeblocks/codeblocks_16.01+dfsg-2.1/src/sdk/wxscintilla/src/scintilla/src/Editor.cxx:7495:

    
case SCI_DROPSELECTIONN:
sel.DropSelection(static_cast<int>(wParam));
Redraw();
break;


actcd19/main/c/chromium/chromium_72.0.3626.121-1/services/network/network_context_cert_transparency_unittest.cc:409:

          histograms.GetBucketCount(
"Net.CertificateTransparency.SCTOrigin",
static_cast<int>(net::ct::SignedCertificateTimestamp::SCT_EMBEDDED)),
kNumSCTs);


actcd19/main/k/kwave/kwave_0.9.2-1-1/plugins/record/RecordPlugin.cpp:124:

    	previous_params = manager().defaultParams(name());
qDebug("RecordPlugin::setup(%s) - MODE=%d",
DBG(previous_params.join(_(","))), static_cast<int>(mode));
}


actcd19/main/c/cloudcompare/cloudcompare_2.10.1-1/plugins/core/qSRA/dxfProfilesExporter.cpp:287:

    			unsigned vertexCount = profile->size();
dxf.writePolyline( *dw,
DL_PolylineData(static_cast<int>(vertexCount),0,0,0),
DL_Attributes(PROFILE_LAYER, DL_Codes::bylayer, -1, "BYLAYER", 1.0));


actcd19/main/w/webkit2gtk/webkit2gtk_2.18.3-1/Source/ThirdParty/ANGLE/src/libANGLE/renderer/d3d/ProgramD3D.cpp:46:

    
for (size_t rowIndex = 0;
static_cast<int>(rowIndex) < gl::VariableRowCount(transposedType); ++rowIndex)
{
GLenum componentType = gl::VariableComponentType(transposedType);


actcd19/main/d/dosbox/dosbox_0.74-2-3/src/gui/sdl_gui.cpp:366:

    		input = new GUI::Input(this, 130, 0, 50);
//Maybe use ToString() of Value
input->setText(stringify(static_cast<int>(prop->GetValue())));
}


actcd19/main/c/chromium/chromium_72.0.3626.121-1/components/ntp_tiles/popular_sites_impl.cc:172:

        int section;
if (!item->GetInteger("section", &section) || section < 0 ||
section > static_cast<int>(SectionType::LAST)) {
LOG(WARNING) << "Parsed SitesExploration list contained a section with "
<< "invalid ID (" << section << ")";


actcd19/main/s/seqan2/seqan2_2.4.0+dfsg-11/include/seqan/align/dp_algorithm_impl.h:1395:

        {
int bandSize = _min(static_cast<int>(length(seqH)), upperDiagonal(band)) - _max(lowerDiagonal(band), -static_cast<int>(length(seqV))) + 1;
setLength(dpScoreMatrix, +DPMatrixDimension_::VERTICAL, _min(static_cast<int>(length(seqV)) + 1, bandSize));
setLength(dpTraceMatrix, +DPMatrixDimension_::VERTICAL, _min(static_cast<int>(length(seqV)) + 1, bandSize));
}


actcd19/main/c/chromium/chromium_72.0.3626.121-1/chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.cc:562:

        : IntRangePolicyHandlerBase(
policy,
static_cast<int>(ArcServicePolicyValue::kDisabled),
static_cast<int>(ArcServicePolicyValue::kUnderUserControl),
false /* clamp */),


actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/storage/browser/quota/quota_manager.cc:1719:

      if (total > 0) {
UMA_HISTOGRAM_PERCENTAGE("Quota.PercentDiskAvailable",
std::min(100, static_cast<int>((available * 100) / total)));
}
return std::make_tuple(total, available);


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

    void Settings::PageItem::setCopyToClipboardModifiers(Qt::KeyboardModifiers modifiers)
{
m_settings->setValue("pageItem/copyToClipboardModifiers", static_cast< int >(modifiers));
}


actcd19/main/g/grhino/grhino_0.16.1-4/pattern.cc:264:

    		for (int j = 0; j < pattern_data[p].piece; ++j) {
pos1 += pow_3[j] * to_pattern_index(board->board[
static_cast<int>(pattern_data[p].pattern[i][j])]);
}
score += pattern_table[p][pos][pos1];


actcd19/main/libo/libopenmpt/libopenmpt_0.4.3-1/soundlib/plugins/LFOPlugin.cpp:74:

    		} else
{
int intPhase = static_cast<int>(m_phase);
if(intPhase > 0 && (m_waveForm == kSHNoise || m_waveForm == kSmoothNoise))
{


actcd19/main/k/kstars/kstars_3.0.0-1/kstars/ekos/align/align.cpp:3299:

            else
{
int elapsed = static_cast<int>(round(solverTimer.elapsed() / 1000.0));
appendLogText(i18np("Solver aborted after %1 second.", "Solver aborted after %1 seconds", elapsed));
}


actcd19/main/c/chromium/chromium_72.0.3626.121-1/chrome/browser/previews/previews_service_unittest.cc:114:

          PreviewsService::GetAllowedPreviews();
EXPECT_EQ(allowed_types_and_versions.find(
static_cast<int>(previews::PreviewsType::LITE_PAGE)),
allowed_types_and_versions.end());
}


actcd19/main/p/pcl/pcl_1.9.1+dfsg1-3/features/include/pcl/features/impl/board.hpp:141:

      // -----------------------------------------------------

int n_points = static_cast<int> (points.rows ());
if (n_points == 0)
{