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/libm/libmwaw/libmwaw_0.3.14-1/src/lib/SuperPaintParser.cxx:962:
for (int r=dim[0]; r<dim[2]; ++r) {
pos=input->tell();
auto len=static_cast<int>(input->readULong(1));
long rEndPos=pos+1+len;
if (!len || !input->checkPosition(rEndPos)) {
actcd19/non-free/v/vmtk/vmtk_1.3+dfsg-2.3/vtkVmtk/IO/vtkvmtkDICOMImageReader.cxx:107:
else if (dicomFileNames->size() > 0)
{
vtkDebugMacro( << "Multiple files (" << static_cast<int>(dicomFileNames->size()) << ")");
this->Parser->ClearAllDICOMTagCallbacks();
actcd19/main/libb/libbpp-phyl/libbpp-phyl_2.4.1-1/src/Bpp/Phyl/BipartitionList.cpp:511:
{
if (BipartitionTools::testBit(bitBipartitionList_[j - nbbip], relements_[i].ind))
BipartitionTools::bit1(bitBipartitionList_[j], static_cast<int>(i));
else
BipartitionTools::bit0(bitBipartitionList_[j], static_cast<int>(i));
actcd19/main/c/chromium/chromium_72.0.3626.121-1/third_party/blink/renderer/core/animation/css_color_interpolation_type.cc:165:
static_cast<int>(round(green / alpha)),
static_cast<int>(round(blue / alpha)),
static_cast<int>(round(alpha)));
}
actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/third_party/webrtc/modules/audio_processing/aec3/echo_remover_metrics.cc:237:
RTC_HISTOGRAM_BOOLEAN(
"WebRTC.Audio.EchoCanceller.ActiveRender",
static_cast<int>(
active_render_count_ > kMetricsCollectionBlocksBy2 ? 1 : 0));
RTC_HISTOGRAM_COUNTS_LINEAR("WebRTC.Audio.EchoCanceller.FilterDelay",
actcd19/main/q/qt4-x11/qt4-x11_4.8.7+dfsg-17/src/3rdparty/webkit/Source/WebCore/generated/JSSQLError.cpp:176:
{
UNUSED_PARAM(exec);
return jsNumber(static_cast<int>(4));
}
actcd19/main/g/gdal/gdal_2.4.0+dfsg-1/frmts/netcdf/netcdflayer.cpp:1282:
OFTInteger )
{
int nVal = static_cast<int>(nProfileIdx);
int status = nc_put_var1_int(m_nLayerCDFId, m_nProfileVarID,
&nProfileIdx, &nVal);
actcd19/main/b/bist/bist_0.5.2-1.1/src/util.cpp:503:
}else{
fl_line_style(FL_SOLID,static_cast<int>(rintf(thickness)));
int dx_scroll=(MainWindow->ritorna_mol_canvas())->x();
int dy_scroll=(MainWindow->ritorna_mol_canvas())->y();
actcd19/main/libs/libsbml/libsbml_5.17.2+dfsg-3/src/sbml/packages/distrib/sbml/DistribLogisticDistribution.cpp:1341:
dld)
{
return (dld != NULL) ? static_cast<int>(dld->isSetScale()) : 0;
}
actcd19/main/libr/libreoffice/libreoffice_6.1.5-1/uui/source/iahndl-errorhandler.cxx:113:
case MessageBoxStyle::YesNoCancel:
xBox->add_button(Button::GetStandardText(StandardButtonType::Yes), static_cast<int>(DialogMask::ButtonsYes));
xBox->add_button(Button::GetStandardText(StandardButtonType::No), static_cast<int>(DialogMask::ButtonsNo));
xBox->add_button(Button::GetStandardText(StandardButtonType::Cancel), static_cast<int>(DialogMask::ButtonsCancel));
break;
actcd19/main/c/cgal/cgal_4.13-1/include/CGAL/Bounded_kernel.h:350:
typename Base::Compare_x_2 _compare_x =
this->compare_x_2_object();
return static_cast<int>( _compare_x(p1,p2) );
}
actcd19/main/q/qtcreator/qtcreator_4.8.2-1/src/plugins/clangformat/clangformatindenter.cpp:255:
'\n'));
} else {
line += static_cast<int>(std::count(utf8Buffer.begin() + blockOffsetUtf8,
utf8Buffer.begin() + lineStartUtf8Offset,
'\n'));
actcd19/main/v/vtk7/vtk7_7.1.1+dfsg1-12/Rendering/Annotation/vtkAxisActor2D.cxx:633:
{
this->TitleMapper->SetConstrainedFontSize(viewport,
static_cast<int>(0.33*len),
static_cast<int>(0.2*len) );
this->TitleMapper->GetSize(viewport, stringSize);
actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/base/time/time_win_unittest.cc:30:
public:
static DWORD Ticker() {
return static_cast<int>(InterlockedIncrement(&ticker_));
}
actcd19/main/f/freefem++/freefem++_3.61.1+dfsg1-4/src/mpi/parallelempi.cpp:2484:
*pm = 0;
for(unsigned short i = 1; i < p; ++i)
pm[i] = static_cast<int>(size - std::sqrt(std::max(size * size - 2 * size * pm[i - 1] - 2 * area + pm[i - 1] * pm[i - 1], 1.0f)) + 0.5);
}
else
actcd19/main/q/qt4-x11/qt4-x11_4.8.7+dfsg-17/src/3rdparty/webkit/Source/WebCore/generated/JSSVGComponentTransferFunctionElement.cpp:298:
{
UNUSED_PARAM(exec);
return jsNumber(static_cast<int>(5));
}
actcd19/main/w/webkit2gtk/webkit2gtk_2.18.3-1/Source/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp:3972:
if (lexicalScopeIndex != OutermostLexicalScopeIndex) {
ASSERT(lexicalScopeIndex < static_cast<int>(m_lexicalScopeStack.size()));
int endIndex = lexicalScopeIndex + 1;
for (size_t i = endIndex; i--; ) {
actcd19/main/o/openalpr/openalpr_2.3.0-1.1/src/openalpr/support/re2/nfa.cc:614:
if (Debug)
fprintf(stderr, "match (%d,%d)\n",
static_cast<int>(match_[0] - btext_),
static_cast<int>(match_[1] - btext_));
return true;
actcd19/main/p/plasma-desktop/plasma-desktop_5.14.5.1-1/kcms/mouse/backends/x11/evdev_settings.cpp:102:
QDBusMessage message = QDBusMessage::createSignal("/KGlobalSettings", "org.kde.KGlobalSettings", "notifyChange");
QList<QVariant> args;
args.append(static_cast<int>(changeType));
args.append(arg);
message.setArguments(args);
actcd19/main/r/rosegarden/rosegarden_18.12-1/src/sound/ControlBlock.cpp:374:
bool channelMatch =
(track.m_channelFilter == -1 || // all channels
track.m_channelFilter == static_cast<int>(channel));
// if the event doesn't match this track's filters, try the next track
actcd19/contrib/e/exult/exult_1.2-18/actorio.cc:159:
if (Game::get_game_type() == BLACK_GATE)
{
set_property(static_cast<int>(Actor::strength), strength_val & 0x3F);
if (num == 0)
actcd19/main/c/colobot/colobot_0.1.11.1-6/src/object/auto/autobase.cpp:665:
// Shock of the closing doors.
max = static_cast<int>(20.0f*m_engine->GetParticleDensity());
for ( i=0 ; i<max ; i++ )
{
actcd19/main/c/chromium/chromium_72.0.3626.121-1/net/dns/host_cache.cc:517:
entry_dict->SetString(kHostnameKey, key.hostname);
entry_dict->SetInteger(kDnsQueryTypeKey,
static_cast<int>(key.dns_query_type));
entry_dict->SetInteger(kFlagsKey, key.host_resolver_flags);
entry_dict->SetInteger(kHostResolverSourceKey,
actcd19/main/p/pentobi/pentobi_14.0-1/src/libpentobi_base/TrigonTransform.cpp:38:
auto py = static_cast<float>(p.y);
auto x = static_cast<int>(std::ceil(0.5f * px - 1.5f * py));
auto y = static_cast<int>(std::floor(0.5f * px + 0.5f * py));
return CoordPoint(x, y);
}
actcd19/main/l/lammps/lammps_0~20151117.gite3c4db7-3/tools/eff/restart2data-pEFF.cpp:929:
data.z[iatoms] = buf[m++];
data.tag[iatoms] = static_cast<int> (buf[m++]);
data.type[iatoms] = static_cast<int> (buf[m++]);
data.mask[iatoms] = static_cast<int> (buf[m++]);
data.image[iatoms] = static_cast<int> (buf[m++]);
actcd19/main/p/paraview/paraview_5.4.1+dfsg4-3.1/VTK/Rendering/FreeType/vtkMathTextFreeTypeTextRenderer.cxx:151:
if (static_cast<Backend>(backend) == Detect)
{
backend = static_cast<int>(this->DetectBackend(str));
}
actcd19/main/n/nodejs/nodejs_10.15.2~dfsg-1/deps/v8/src/arm64/instructions-arm64.cc:252:
Instr imm;
if (Instruction::IsValidPCRelOffset(target_offset)) {
imm = Assembler::ImmPCRelAddress(static_cast<int>(target_offset));
SetInstructionBits(Mask(~ImmPCRel_mask) | imm);
} else {
actcd19/main/c/chromium/chromium_72.0.3626.121-1/third_party/webrtc/p2p/base/pseudotcp_unittest.cc:440:
}
} else {
sent = static_cast<int>(tosend = 0);
}
} while (sent > 0);
actcd19/main/g/geany/geany_1.34.1-1/scintilla/src/PerLine.cxx:372:
annotations.EnsureLength(line+1);
const int style = Style(line);
annotations[line].reset(AllocateAnnotation(static_cast<int>(strlen(text)), style));
char *pa = annotations[line].get();
assert(pa);
actcd19/main/x/xpilot-ng/xpilot-ng_4.7.3-2.3/contrib/circle_cannon_dodgers_generate.cpp:95:
for (int i=0; i<3; i++) {
x = static_cast<int>(cos(a)*cannonx[i] - sin(a)*cannony[i] + centerx);
y = static_cast<int>(sin(a)*cannonx[i] + cos(a)*cannony[i] + centery);
cout << "<Offset x=\"" << (x-lastx) << "\" y=\"" << (y-lasty) << "\"/>" << endl;
actcd19/main/o/opencv/opencv_3.2.0+dfsg-6/modules/stitching/include/opencv2/stitching/detail/warpers_inl.hpp:208:
dst_tl.x = static_cast<int>(tl_uf);
dst_tl.y = static_cast<int>(tl_vf);
dst_br.x = static_cast<int>(br_uf);
dst_br.y = static_cast<int>(br_vf);
}
actcd19/main/o/opencv/opencv_3.2.0+dfsg-6/modules/stitching/include/opencv2/stitching/detail/warpers_inl.hpp:206:
}
dst_tl.x = static_cast<int>(tl_uf);
dst_tl.y = static_cast<int>(tl_vf);
dst_br.x = static_cast<int>(br_uf);
actcd19/main/p/paraview/paraview_5.4.1+dfsg4-3.1/VTK/Filters/FlowPaths/vtkCachingInterpolatedVelocityField.cxx:199:
// now try each of the datasets in turn
for (this->LastCacheIndex = 0;
this->LastCacheIndex < static_cast<int>(this->CacheList.size());
this->LastCacheIndex++)
{
actcd19/main/libs/libsbml/libsbml_5.16.0+dfsg-2/src/sbml/Compartment.cpp:2274:
Compartment_isSetSize (const Compartment_t *c)
{
return (c != NULL) ? static_cast<int>( c->isSetSize() ):0;
}
actcd19/main/o/ola/ola_0.10.7.nojsmin-1/examples/ola-dmxmonitor.cpp:311:
current_channel = ola::DMX_UNIVERSE_SIZE - 1;
if (current_channel >=
static_cast<int>(first_channel + channels_per_screen)) {
first_channel += channels_per_line;
}
actcd19/main/k/kdepim4/kdepim4_4.14.10-7/kalarm/lib/spinbox2.cpp:111:
void SpinBox2::setReadOnly(bool ro)
{
if (static_cast<int>(ro) != static_cast<int>(mSpinbox->isReadOnly()))
{
mSpinbox->setReadOnly(ro);
actcd19/main/c/chromium/chromium_72.0.3626.121-1/v8/src/compiler/backend/mips64/instruction-selector-mips64.cc:1614:
}
} else {
int push_count = static_cast<int>(call_descriptor->StackParameterCount());
if (push_count > 0) {
// Calculate needed space
actcd19/main/n/nfstrace/nfstrace_0.4.3.2-1/analyzers/src/watch/watch_analyzer.cpp:428:
void WatchAnalyzer::createSMBv1(const SMBv1::CreateCommand* /*cmd*/, const SMBv1::CreateArgumentType*, const SMBv1::CreateResultType*)
{
cifs_account(_cifsv1, static_cast<int>(SMBv1::SMBv1Commands::SMB_COM_CREATE));
}
actcd19/main/c/chromium/chromium_72.0.3626.121-1/components/policy/core/browser/android/policy_converter.cc:93:
const JavaRef<jobjectArray>& array) {
DCHECK(!array.is_null());
int length = static_cast<int>(env->GetArrayLength(array.obj()));
DCHECK_GE(length, 0) << "Invalid array length: " << length;
actcd19/main/p/pingus/pingus_0.7.6-4/src/engine/display/surface.cpp:460:
out << boost::format("(%3d %3d %3d %3d) ")
% static_cast<int>(pixels[i+0])
% static_cast<int>(pixels[i+1])
% static_cast<int>(pixels[i+2])
% static_cast<int>(pixels[i+3]);
actcd19/main/d/darkradiant/darkradiant_2.6.0-3/radiant/selection/algorithm/GroupCycle.cpp:91:
if (_list.size() > 1) {
// Increase the index and wrap around at the list end
_index = (_index+1) % static_cast<int>(_list.size());
// Select the new candidate
actcd19/main/m/mame/mame_0.176-3/3rdparty/bgfx/3rdparty/scintilla/src/EditView.cxx:1055:
surface->LineTo(static_cast<int>(rcSegment.left), static_cast<int>(rcSegment.bottom));
surface->MoveTo(static_cast<int>(rcSegment.right), static_cast<int>(rcSegment.top));
surface->LineTo(static_cast<int>(rcSegment.right), static_cast<int>(rcSegment.bottom));
if (subLine == ll->lines) {
surface->MoveTo(static_cast<int>(rcSegment.left), static_cast<int>(rcSegment.top));
actcd19/main/c/chromium/chromium_72.0.3626.121-1/components/omnibox/browser/shortcuts_provider.cc:390:
kNumUsesPerDecaySpeedDivisorIncrement);
return static_cast<int>((base_score / exp(decay_exponent / decay_divisor)) +
0.5);
}
actcd19/main/libp/libpodofo/libpodofo_0.9.6+dfsg-4/.pc/CVE-2018-12982.patch/src/base/PdfEncrypt.cpp:567:
rValue = static_cast<int>(pObject->GetDictionary().GetKey( PdfName("R") )->GetNumber());
pValue = static_cast<int>(pObject->GetDictionary().GetKey( PdfName("P") )->GetNumber());
oValue = pObject->GetDictionary().GetKey( PdfName("O") )->GetString();
actcd19/main/n/nodejs/nodejs_10.15.2~dfsg-1/deps/v8/src/heap/factory.cc:618:
decoder->Reset(non_ascii);
int utf16_length = static_cast<int>(decoder->Utf16Length());
DCHECK_GT(utf16_length, 0);
actcd19/main/p/paraview/paraview_5.4.1+dfsg4-3.1/VTK/Rendering/OpenGL/vtkOpenGLState.cxx:1307:
else
{
GLint colorAttachment=static_cast<int>(static_cast<unsigned int>(colorBuffer)
-vtkgl::COLOR_ATTACHMENT0);
if (colorAttachment>=0 && colorAttachment<this->MaxColorAttachments)
actcd19/main/libm/libmwaw/libmwaw_0.3.14-1/src/lib/MacDrawProStyleManager.cxx:1349:
m_state->m_documentSize=MWAWVec2f(fDim[0],fDim[1]);
f << "document[size]=" << m_state->m_documentSize << ",";
val=static_cast<int>(input->readLong(2)); // 0|1
if (val) f << "f5=" << val << ",";
for (float &i : fDim) i=float(input->readLong(4))/65536.f;
actcd19/main/libm/libmwaw/libmwaw_0.3.14-1/src/lib/ClarisDrawParser.cxx:1366:
val = static_cast<int>(input->readLong(2));
if (val) f << "unkn=" << val << ",";
m_state->m_footerId = static_cast<int>(input->readLong(2));
if (m_state->m_footerId) f << "footerId=" << m_state->m_footerId << ",";
for (int i=0; i < 4; ++i) {
actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/components/offline_pages/core/prefetch/stale_entry_finalizer_task.cc:93:
sql::Statement statement(db->GetCachedStatement(SQL_FROM_HERE, kSql));
statement.BindInt(0, static_cast<int>(PrefetchItemState::ZOMBIE));
statement.BindInt(1, static_cast<int>(PrefetchItemState::AWAITING_GCM));
// In event of failure, assume more work exists.
actcd19/main/libs/libsbml/libsbml_5.15.2+dfsg-1/libsbml-5.15.2/src/sbml/Unit.cpp:2877:
Unit_isHenry (const Unit_t *u)
{
return (u != NULL) ? static_cast<int>( u->isHenry() ) : 0;
}
actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/cc/trees/layer_tree_host_impl.cc:1695:
UMA_HISTOGRAM_MEMORY_MB(
"Renderer4.ResourcePoolMemoryUsage",
static_cast<int>(resource_pool_->memory_usage_bytes() / kMegabyte));
}
actcd19/main/m/mia/mia_2.4.6-4/addons/vtk/vtkmesh.cc:252:
[&triangles](const CTriangleMesh::triangle_type& x)->void {
vtkIdType p[] = {static_cast<int>(x.x),
static_cast<int>(x.y),
static_cast<int>(x.z)};
triangles->InsertNextCell(3, p);
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:1859:
const gl::InternalFormat &internalFormatInfo = gl::GetInternalFormatInfo(internalFormat, type);
gl::Extents size(static_cast<int>(source->getWidth(sourceTarget, sourceLevel)),
static_cast<int>(source->getHeight(sourceTarget, sourceLevel)), 1);
ANGLE_TRY(redefineImage(context, faceIndex, destLevel, internalFormatInfo.sizedInternalFormat,
actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/third_party/angle/src/image_util/loadimage_etc.cpp:1016:
magn = kQuantizeRange / magn;
vr = static_cast<int>(vfr * magn);
vg = static_cast<int>(vfg * magn);
vb = static_cast<int>(vfb * magn);
}
actcd19/main/n/nodejs/nodejs_10.15.2~dfsg-1/deps/v8/src/builtins/ppc/builtins-ppc.cc:836:
// Check if the bytecode is a Wide or ExtraWide prefix bytecode.
Label process_bytecode, extra_wide;
STATIC_ASSERT(0 == static_cast<int>(interpreter::Bytecode::kWide));
STATIC_ASSERT(1 == static_cast<int>(interpreter::Bytecode::kExtraWide));
STATIC_ASSERT(2 == static_cast<int>(interpreter::Bytecode::kDebugBreakWide));
actcd19/main/c/chromium/chromium_72.0.3626.121-1/v8/src/wasm/wasm-interpreter.cc:2948:
frame()->code->locals.type_list.size();
DCHECK_GE(kMaxInt, num_locals);
return static_cast<int>(num_locals);
}
actcd19/main/p/paraview/paraview_5.4.1+dfsg4-3.1/VTK/IO/Geometry/vtkOpenFOAMReader.cxx:6630:
{
// if it is a _neighbor_ face flip the points
pointI = static_cast<int>(faceJPoints.size()) - 1;
delta = -1;
}
actcd19/main/c/chromium/chromium_72.0.3626.121-1/v8/src/wasm/function-body-decoder-impl.h:2202:
}
TRACE_PART(" %c@%d:%s", ValueTypes::ShortNameOf(val.type),
static_cast<int>(val.pc - this->start_),
WasmOpcodes::OpcodeName(opcode));
// If the decoder failed, don't try to decode the immediates, as this
actcd19/main/k/kdepim4/kdepim4_4.14.10-7/kalarm/collectionmodel.cpp:827:
model->setData(ix, static_cast<int>(canEnable), AkonadiModel::EnabledTypesRole);
if (disallowedStdTypes)
model->setData(ix, static_cast<int>(stdTypes & ~disallowedStdTypes), AkonadiModel::IsStandardRole);
}
}
actcd19/main/t/tulip/tulip_4.8.0dfsg-2/plugins/view/ScatterPlot2DView/ScatterPlot2D.cpp:289:
else {
unsigned int step = static_cast<unsigned int>((yMax - yMin) / 20);
yAxis->setAxisParameters(static_cast<int>(yMin) ,static_cast<int>(yMax),
step ? step : 1, GlAxis::LEFT_OR_BELOW, true);
}
actcd19/main/r/regina-normal/regina-normal_5.1-6/engine/census/compact.cpp:68:
<< static_cast<int>(bdryEdges) << ' '
<< bdryNext[0] << ' ' << bdryNext[1] << ' '
<< static_cast<int>(bdryTwist[0]) << ' '
<< static_cast<int>(bdryTwist[1]) << ' '
<< bdryNextOld[0] << ' ' << bdryNextOld[1] << ' '
actcd19/main/s/scribus/scribus_1.4.7+dfsg-3/scribus/prefsmanager.cpp:1501:
dc79a.setAttribute("checkAnnotations", static_cast<int>(itcp.value().checkAnnotations));
dc79a.setAttribute("checkRasterPDF", static_cast<int>(itcp.value().checkRasterPDF));
dc79a.setAttribute("checkForGIF", static_cast<int>(itcp.value().checkForGIF));
dc79a.setAttribute("ignoreOffLayers", static_cast<int>(itcp.value().ignoreOffLayers));
dc79a.setAttribute("checkOffConflictLayers", static_cast<int>(itcp.value().checkOffConflictLayers));
actcd19/main/f/fcitx5/fcitx5_0~20181128+ds1-1/src/ui/classic/xcbinputwindow.cpp:141:
newX = closestScreen->right() - width();
if ((newY + static_cast<int>(height())) > closestScreen->bottom()) {
if (newY > closestScreen->bottom())
newY = closestScreen->bottom() - height() - 40;
actcd19/main/libr/libreoffice/libreoffice_6.1.5-1/framework/source/layoutmanager/toolbarlayoutmanager.cxx:1839:
SolarMutexClearableGuard aReadLock;
aWindowVector.reserve(m_aUIElements.size());
xDockAreaWindow = m_xDockAreaWindows[static_cast<int>(eDockingArea)];
for (auto const& elem : m_aUIElements)
{
actcd19/main/c/ceph/ceph_12.2.11+dfsg1-2/src/boost/libs/hana/test/_include/laws/base.hpp:194:
constexpr bool operator&&(Policy a, Policy b) {
return static_cast<int>(a) && static_cast<int>(b);
}
actcd19/main/p/paraview/paraview_5.0.1+dfsg1-5.1/VTK/IO/Geometry/vtkCGMWriter.cxx:4393:
/* don't make this longer than 250 characters */
tmps = "vtk CGM Output file";
tmpsl = static_cast<int>(strlen(tmps));
if (tmpsl >250)
{
actcd19/main/g/gecode/gecode_6.1.0-2/gecode/int/int-set-1.hpp:130:
inline
IntSet::IntSet(const std::vector<std::pair<int,int>>& r) {
int n = static_cast<int>(r.size());
if (n > 0) {
Region reg;
actcd19/main/t/trilinos/trilinos_12.12.1-7/packages/teuchos/core/src/Teuchos_as.hpp:2329:
// Implicit conversion from unsigned long long to int may cause
// compiler warnings, but static_cast does not.
return static_cast<int> (t);
}
};
actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/third_party/webrtc/rtc_base/physicalsocketserver.cc:380:
size_t len = addr.ToSockAddrStorage(&saddr);
int sent = DoSendTo(
s_, static_cast<const char *>(buffer), static_cast<int>(length),
#if defined(WEBRTC_LINUX) && !defined(WEBRTC_ANDROID)
// Suppress SIGPIPE. See above for explanation.
actcd19/main/e/ember/ember_0.7.2+dfsg-2/src/components/ogre/environment/caelum/src/InternalUtilities.cpp:33:
{
// Don't -> all the time, and avoid unsigned warnings
int imgWidth = static_cast<int>(img->getWidth ());
int imgHeight = static_cast<int>(img->getHeight ());
actcd19/main/k/kbounce/kbounce_17.08.3-2/wall.cpp:129:
return;
int boundingRectWidth = static_cast<int>(std::ceil(m_boundingRect.width() * s_tileSize.width()));
int boundingRectHeight = static_cast<int>(std::ceil(m_boundingRect.height() * s_tileSize.height()));
actcd19/main/o/openscenegraph-3.4/openscenegraph-3.4_3.4.1+dfsg1-5/src/osgUtil/RenderStage.cpp:841:
static_cast<int>(_viewport->x()),
static_cast<int>(_viewport->y()),
static_cast<int>(_viewport->width()),
static_cast<int>(_viewport->height()));
}
actcd19/main/c/chromium/chromium_72.0.3626.121-1/ui/ozone/platform/wayland/wayland_window_unittest.cc:144:
hit_tests->push_back(static_cast<int>(HTRIGHT));
hit_tests->push_back(static_cast<int>(HTTOP));
hit_tests->push_back(static_cast<int>(HTTOPLEFT));
hit_tests->push_back(static_cast<int>(HTTOPRIGHT));
}
actcd19/main/k/kmymoney/kmymoney_5.0.3-2/kmymoney/views/kpayeesview_p.h:165:
ui->comboDefaultCategory->setModel(m_filterProxyModel);
ui->matchTypeCombo->addItem(i18nc("@item No matching", "No matching"), static_cast<int>(eMyMoney::Payee::MatchType::Disabled));
ui->matchTypeCombo->addItem(i18nc("@item Match Payees name partially", "Match Payees name (partial)"), static_cast<int>(eMyMoney::Payee::MatchType::Name));
ui->matchTypeCombo->addItem(i18nc("@item Match Payees name exactly", "Match Payees name (exact)"), static_cast<int>(eMyMoney::Payee::MatchType::NameExact));
actcd19/main/p/pingus/pingus_0.7.6-4/src/pingus/particles/rain_particle_holder.cpp:121:
else
gc.color().draw(rain1_surf, Vector2i(static_cast<int>(it->pos.x),
static_cast<int>(it->pos.y - static_cast<float>(rain1_surf.get_height()))));
}
}
actcd19/main/t/trilinos/trilinos_12.12.1-7/packages/tpetra/core/src/Tpetra_Experimental_BlockMultiVector_def.hpp:809:
static_assert (Kokkos::Impl::is_view<ViewD>::value, "D must be a Kokkos::View.");
static_assert (Kokkos::Impl::is_view<ViewZ>::value, "Z must be a Kokkos::View.");
static_assert (static_cast<int> (ViewY::rank) == static_cast<int> (ViewZ::rank),
"Y and Z must have the same rank.");
static_assert (static_cast<int> (ViewD::rank) == 3, "D must have rank 3.");
actcd19/main/e/eiskaltdcpp/eiskaltdcpp_2.2.10+340+g44d8aea4-1/eiskaltdcpp-qt/src/WulforSettings.cpp:196:
settings.setValue(WB_SEARCH_PANEL_VISIBLE, static_cast<int>(false));
settings.setValue(WB_MAIN_MENU_VISIBLE, static_cast<int>(true));
settings.setValue(WB_USE_CTRL_ENTER, static_cast<int>(false));
settings.setValue(WB_SIMPLE_SHARE_MODE, static_cast<int>(true));
settings.setValue(WI_APP_UNIT_BASE, 1024);
actcd19/main/t/tulip/tulip_4.8.0dfsg-2/thirdparty/OGDF/src/coin/CoinUtils/CoinFactorization3.cpp:632:
regionFT->getNumElements())>>1;
if (ftranAverageAfterR_) {
int newNumber = static_cast<int> (numberNonZero*ftranAverageAfterU_);
if (newNumber< sparseThreshold_)
goSparse = 2;
actcd19/main/h/h2o/h2o_2.2.5+dfsg2-2/deps/brotli/enc/compress_fragment_two_pass.cc:343:
uint32_t cur_hash = HashBytesAtOffset(input_bytes, 2, shift);
candidate = base_ip + table[cur_hash];
table[cur_hash] = static_cast<int>(ip - base_ip);
}
actcd19/main/m/mysql-5.7/mysql-5.7_5.7.25-1/rapid/plugin/x/ngs/include/ngs_common/xdatetime.h:163:
ss << " " << std::setw(2) << static_cast<int>(hour())
<< ":" << std::setw(2) << static_cast<int>(minutes())
<< ":" << std::setw(2) << static_cast<int>(seconds())
<< Time::us_to_str(useconds());
}
actcd19/main/v/vtk7/vtk7_7.1.1+dfsg1-12/Rendering/Core/vtkTextActor.cxx:306:
if (tempi[0] > maxResultingSize[0])
{
maxResultingSize[0] = static_cast<int>(tempi[0]);
}
if (tempi[1] > maxResultingSize[1])
actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/third_party/WebKit/Source/modules/cachestorage/Cache.cpp:180:
EnumerationHistogram, response_type_histogram,
("ServiceWorkerCache.Cache.AddResponseType",
static_cast<int>(network::mojom::FetchResponseType::kLast) + 1));
response_type_histogram.Count(
static_cast<int>(response->GetResponse()->GetType()));
actcd19/main/s/supertux/supertux_0.6.0-1/external/googletest/googletest/src/gtest-internal-inl.h:330:
template <typename E>
inline void Shuffle(internal::Random* random, std::vector<E>* v) {
ShuffleRange(random, 0, static_cast<int>(v->size()), v);
}
actcd19/main/n/nodejs/nodejs_4.6.1~dfsg-1/deps/v8/src/compiler/code-generator.cc:179:
Handle<HandlerTable> table =
Handle<HandlerTable>::cast(isolate()->factory()->NewFixedArray(
HandlerTable::LengthForReturn(static_cast<int>(handlers_.size())),
TENURED));
for (size_t i = 0; i < handlers_.size(); ++i) {
actcd19/main/q/qtdeclarative-opensource-src/qtdeclarative-opensource-src_5.11.3-4/src/3rdparty/masm/yarr/YarrInterpreter.cpp:1595:
{
ASSERT(m_bodyDisjunction->terms.size() <= INT_MAX);
int beginTerm = static_cast<int>(m_bodyDisjunction->terms.size());
m_bodyDisjunction->terms.append(ByteTerm(ByteTerm::TypeParentheticalAssertionBegin, subpatternId, false, invert, 0));
actcd19/main/libr/libreoffice/libreoffice_6.1.5-1/vcl/workben/vcldemo.cxx:1095:
ScopedVclPtr<VirtualDevice> pNested;
if (static_cast<int>(eType) < RENDER_AS_BITMAPEX)
pNested = VclPtr<VirtualDevice>::Create(rDev).get();
else
actcd19/main/q/qtwebengine-opensource-src/qtwebengine-opensource-src_5.11.3+dfsg-2/src/3rdparty/chromium/third_party/webrtc/modules/audio_processing/aec3/matched_filter.cc:152:
float* error_sum) {
const int h_size = static_cast<int>(h.size());
const int x_size = static_cast<int>(x.size());
RTC_DCHECK_EQ(0, h_size % 4);
actcd19/main/f/filelight/filelight_17.08.3-2/src/radialMap/map.cpp:437:
radius += 5;
sincos(ra, &sinra, &cosra);
pos.rx() = cpos.x() + static_cast<int>(cosra * radius);
pos.ry() = cpos.y() - static_cast<int>(sinra * radius);
pts.setPoint(i, pos);
actcd19/main/t/trilinos/trilinos_12.12.1-7/packages/stk/stk_classic/stk_util/stk_util/unit_test_support/GeneratedMesh.cpp:907:
connect[cnt++] = static_cast<int>(base + (numX+1));
connect[cnt++] = static_cast<int>(base + xp1yp1 + (numX+1));
connect[cnt++] = static_cast<int>(base + xp1yp1);
}
}
actcd19/main/s/supertux/supertux_0.6.0-1/src/editor/toolbox_widget.cpp:243:
int size = static_cast<int>(m_active_tilegroup->tiles.size());
for (int y = static_cast<int>(select.get_top()); y <= static_cast<int>(select.get_bottom()); y++) {
for (int x = static_cast<int>(select.get_left()); x <= static_cast<int>(select.get_right()); x++) {
int tile_pos = y*4 + x + m_starting_tile;
if (tile_pos < size && tile_pos >= 0) {
actcd19/main/g/gem/gem_0.94-1/src/Pixes/pix_motionblur.cpp:523:
break;
case 2:
m_blur1=static_cast<int>(256.f*atom_getfloat(argv));
if(m_blur1<0) {
m_blur1=0;
actcd19/main/p/paraview/paraview_5.0.1+dfsg1-5.1/VTK/IO/Image/vtkMedicalImageProperties.cxx:671:
break;
case 'D':
day = static_cast<int>(val);
break;
default:
actcd19/main/m/mame/mame_0.182-1/src/devices/sound/discrete.h:4632:
#define DISCRETE_DIODE_MIXER3(NODE,IN0,IN1,IN2,TABLE) DSC_SND_ENTRY( NODE, dst_diode_mix , DSS_NODE , 3, DSE( static_cast<int>(IN0),static_cast<int>(IN1),static_cast<int>(IN2) ), DSE( IN0,IN1,IN2 ), TABLE, "DISCRETE_DIODE_MIXER3" ),
#define DISCRETE_DIODE_MIXER4(NODE,IN0,IN1,IN2,IN3,TABLE) DSC_SND_ENTRY( NODE, dst_diode_mix , DSS_NODE , 4, DSE( static_cast<int>(IN0),static_cast<int>(IN1),static_cast<int>(IN2),static_cast<int>(IN3) ), DSE( IN0,IN1,IN2,IN3 ), TABLE, "DISCRETE_DIODE_MIXER4" ),
#define DISCRETE_INTEGRATE(NODE,TRG0,TRG1,INFO) DSC_SND_ENTRY( NODE, dst_integrate , DSS_NODE , 2, DSE( static_cast<int>(TRG0),static_cast<int>(TRG1) ), DSE( TRG0,TRG1 ), INFO, "DISCRETE_INTEGRATE" ),
#define DISCRETE_MIXER2(NODE,ENAB,IN0,IN1,INFO) DSC_SND_ENTRY( NODE, dst_mixer , DSS_NODE , 3, DSE( static_cast<int>(ENAB),static_cast<int>(IN0),static_cast<int>(IN1) ), DSE( ENAB,IN0,IN1 ), INFO, "DISCRETE_MIXER2" ),
#define DISCRETE_MIXER3(NODE,ENAB,IN0,IN1,IN2,INFO) DSC_SND_ENTRY( NODE, dst_mixer , DSS_NODE , 4, DSE( static_cast<int>(ENAB),static_cast<int>(IN0),static_cast<int>(IN1),static_cast<int>(IN2) ), DSE( ENAB,IN0,IN1,IN2 ), INFO, "DISCRETE_MIXER3" ),
actcd19/main/c/chromium/chromium_72.0.3626.121-1/third_party/angle/src/compiler/translator/ParseContext.cpp:3998:
else if (indexConstantUnion->getBasicType() == EbtUInt)
{
index = static_cast<int>(indexConstantUnion->getUConst(0));
}
actcd19/main/t/trilinos/trilinos_12.12.1-7/packages/kokkos/core/src/Kokkos_NumericTraits.hpp:104:
KOKKOS_FORCEINLINE_FUNCTION constexpr static int band() {return ~static_cast<int>(0x0);}
KOKKOS_FORCEINLINE_FUNCTION constexpr static int lor() {return static_cast<int>(0);}
KOKKOS_FORCEINLINE_FUNCTION constexpr static int land() {return static_cast<int>(1);}
};
actcd19/main/q/qpdfview/qpdfview_0.4.14-1/sources/settings.cpp:475:
void Settings::DocumentView::setZoomModifiers(const Qt::KeyboardModifiers& zoomModifiers)
{
m_settings->setValue("documentView/zoomModifiers", static_cast< int >(zoomModifiers));
}
actcd19/main/libt/libtuxcap/libtuxcap_1.4.0.dfsg2-2.3/tuxcap/lib/SWTri_DrawTriangle.cpp:137:
int64_t topHeight = v1->y - v0->y;
int mid = v0->x + static_cast<int>((topHeight * ldx)>>16);
if (v1->x == mid) return; // Null polygon (no width)?
actcd19/main/l/lammps/lammps_0~20181211.gitad1b1897d+dfsg1-1/src/KOKKOS/npair_kokkos.h:351:
iz = MIN(iz,nbinz-1);
} else
iz = static_cast<int> ((z-bboxlo[2])*bininvz) - 1;
i[0] = ix - mbinxlo;
actcd19/main/z/zeroc-ice/zeroc-ice_3.7.2-4/ruby/src/IceRuby/Proxy.cpp:481:
volatile VALUE cls = callRuby(rb_path2class, "Ice::EndpointSelectionType");
assert(!NIL_P(cls));
return callRuby(rb_funcall, cls, rb_intern("from_int"), 1, INT2NUM(static_cast<int>(type)));
}
ICE_RUBY_CATCH
actcd19/main/w/witty/witty_3.3.6+dfsg-1.1/src/Wt/WTreeView.C:1261:
(WLink(WApplication::instance()->theme()->resourcesUrl()
+ "stripes/stripe-" + boost::lexical_cast<std::string>
(static_cast<int>(rowHeight().toPixels())) + "px.gif"));
else
rootNode_->decorationStyle().setBackgroundImage(WLink(""));