This bugzilla service is closed. All entries have been migrated to https://gitlab.com/libeigen/eigen
Bug 1473 - Compiler warning: comparison of integers of different signs
Summary: Compiler warning: comparison of integers of different signs
Status: NEW
Alias: None
Product: Eigen
Classification: Unclassified
Component: Core - general (show other bugs)
Version: 3.3 (current stable)
Hardware: x86 - 64-bit Mac OS
: Normal Compilation Problem
Assignee: Nobody
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-02 15:51 UTC by Tom de Geus
Modified: 2019-12-04 17:13 UTC (History)
3 users (show)



Attachments

Description Tom de Geus 2017-10-02 15:51:58 UTC
I get the following compiler warning:

/usr/local/Cellar/eigen/3.3.4/include/eigen3/Eigen/src/Core/functors/NullaryFunctors.h:96:59: warning: comparison of integers of different signs:
      'unsigned long' and 'Index' (aka 'long') [-Wsign-compare]
    m_use_divisor(num_steps>1 && (numext::abs(high-low)+1)<num_steps)
                                  ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~
/usr/local/Cellar/eigen/3.3.4/include/eigen3/Eigen/src/Core/functors/NullaryFunctors.h:132:7: note: in instantiation of member function
      'Eigen::internal::linspaced_op_impl<unsigned long, unsigned long, true>::linspaced_op_impl' requested here
    : impl((num_steps==1 ? high : low),high,num_steps)
      ^
/usr/local/Cellar/eigen/3.3.4/include/eigen3/Eigen/src/Core/CwiseNullaryOp.h:271:48: note: in instantiation of member function
      'Eigen::internal::linspaced_op<unsigned long, unsigned long>::linspaced_op' requested here
  return DenseBase<Derived>::NullaryExpr(size, internal::linspaced_op<Scalar,PacketScalar>(low,high,size));
                                               ^
/usr/local/include/GooseMesh/GooseMesh/Mesh.h:68:25: note: in instantiation of member function 'Eigen::DenseBase<Eigen::Matrix<unsigned long, 1, -1,
      1, 1, -1> >::LinSpaced' requested here
  VecS dofs_vec = VecS::LinSpaced( nnode*ndim , 0 , nnode*ndim );

With the following compiler:

$ clang++ --version
Apple LLVM version 9.0.0 (clang-900.0.37)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Comment 1 Nobody 2019-12-04 17:13:10 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to gitlab.com's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.com/libeigen/eigen/issues/1473.

Note You need to log in before you can comment on or make changes to this bug.