RobinHankin / clifford

5 stars 0 forks source link

compiler warning #100

Closed RobinHankin closed 3 months ago

RobinHankin commented 3 months ago

warning from compiler

l/R/win-library/4.3/BH/include'   -I"C:/rtools43/x86_64-w64-mingw32.static.posix/include"     -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -c clifford.cpp -o clifford.o
In file included from clifford.cpp:1:
clifford.h: In function 'clifford prepare(const Rcpp::List&, const Rcpp::NumericVector&, const Rcpp::NumericVector&)':
clifford.h:33:12: warning: comparison of integer expressions of different signedness: 'const size_t' {aka 'const long long unsigned int'} and 'R_xlen_t' {aka 'long long int'} [-Wsign-compare]
   33 |     if(!(n == d.length())){throw std::range_error("in prepare(L,d,m) [file inst/clifford.h], L must be the same length as d");}
      |          ~~^~~~~~~~~~~~~
clifford.h: In function 'bool any_too_big(Rcpp::IntegerVector, unsigned int)':
clifford.h:198:14: warning: comparison of integer expressions of different signedness: 'const Rcpp::traits::storage_type<13>::type' {aka 'const int'} and 'const unsigned int' [-Wsign-compare]
  198 |     if(iv[j] > m){
g++ -std=gnu++17 -shared -s -static-libgcc -o clifford.dll tmp.def RcppExports.o clifford.o -LC:/rtools43/x86_64-w64-mingw32.static.posix/lib/x64 -LC:/rtools43/x86_64-w64-mingw32.static.posix/lib -LC:/PROGRA~1/R/R-43~1.3/bin/x64 -lR
installing to C:/Users/hanki/AppData/Local/R/win-library/4.3/00LOCK-clifford/00new/clifford/libs/x64
** R
** data