[geos-devel] [GEOS] #1104: error: conversion from 'std::size_t' {aka 'long long unsigned int'} to 'long int' may change value [-Werror=conversion]
GEOS
geos-trac at osgeo.org
Tue Mar 2 15:29:36 PST 2021
#1104: error: conversion from 'std::size_t' {aka 'long long unsigned int'} to
'long int' may change value [-Werror=conversion]
------------------------+---------------------------
Reporter: robe | Owner: geos-devel@…
Type: defect | Status: new
Priority: major | Milestone: 3.10.0
Component: Default | Version: master
Severity: Unassigned | Resolution:
Keywords: |
------------------------+---------------------------
Comment (by gdt):
It seems std::count is of type size_t, not long, so the variable the
answer is stored in should be size_t. I don't see that this is more
complicated than using the right type.
--
Ticket URL: <https://trac.osgeo.org/geos/ticket/1104#comment:3>
GEOS <http://trac.osgeo.org/geos>
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS).
More information about the geos-devel
mailing list