RobinHankin / clifford

https://robinhankin.github.io/clifford/
5 stars 0 forks source link

signed int vs unsigned int compiler warning #66

Closed RobinHankin closed 2 years ago

RobinHankin commented 2 years ago

From winbuillder:


*** arch - i386
d:/Compiler/rtools40/mingw32/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.1.2/include" -DNDEBUG  -I'd:/RCompile/CRANpkg/lib/4.1/Rcpp/include' -I'd:/RCompile/CRANpkg/lib/4.1/BH/include'   -I"d:/Compiler/gcc-4.9.3/local330/include"     -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -c RcppExports.cpp -o RcppExports.o
d:/Compiler/rtools40/mingw32/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.1.2/include" -DNDEBUG  -I'd:/RCompile/CRANpkg/lib/4.1/Rcpp/include' -I'd:/RCompile/CRANpkg/lib/4.1/BH/include'   -I"d:/Compiler/gcc-4.9.3/local330/include"     -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -c clifford.cpp -o clifford.o
In file included from clifford.cpp:1:
clifford.h: In function 'blade_and_sign juxtapose(blade, blade, Rcpp::NumericVector)':
clifford.h:121:18: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'unsigned int'} and 'const int' [-Wsign-compare]
             if(i <= p){
                ~~^~~~
clifford.h:123:26: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'unsigned int'} and 'int' [-Wsign-compare]
             } else if (i <= p+q){
                        ~~^~~~~~
d:/Compiler/rtools40/mingw32/bin/g++ -shared -s -static-libgcc -o clifford.dll tmp.def RcppExports.o clifford.o -Ld:/Compiler/gcc-4.9.3/local330/lib/i386 -Ld:/Compiler/gcc-4.9.3/local330/lib -LD:/RCompile/recent/R-4.1.2/bin/i386 -lR
installing to d:/RCompile/CRANguest/R-release/lib/00LOCK-clifford/00new/clifford/libs/i386

*** arch - x64
d:/Compiler/rtools40/mingw64/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.1.2/include" -DNDEBUG  -I'd:/RCompile/CRANpkg/lib/4.1/Rcpp/include' -I'd:/RCompile/CRANpkg/lib/4.1/BH/include'   -I"d:/Compiler/gcc-4.9.3/local330/include"     -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -c RcppExports.cpp -o RcppExports.o
d:/Compiler/rtools40/mingw64/bin/g++  -std=gnu++11 -I"D:/RCompile/recent/R-4.1.2/include" -DNDEBUG  -I'd:/RCompile/CRANpkg/lib/4.1/Rcpp/include' -I'd:/RCompile/CRANpkg/lib/4.1/BH/include'   -I"d:/Compiler/gcc-4.9.3/local330/include"     -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -c clifford.cpp -o clifford.o
In file included from clifford.cpp:1:
clifford.h: In function 'blade_and_sign juxtapose(blade, blade, Rcpp::NumericVector)':
clifford.h:121:18: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long long unsigned int'} and 'const int' [-Wsign-compare]
             if(i <= p){
                ~~^~~~
clifford.h:123:26: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long long unsigned int'} and 'int' [-Wsign-compare]
             } else if (i <= p+q){
                        ~~^~~~~~
d:/Compiler/rtools40/mingw64/bin/g++ -shared -s -static-libgcc -o clifford.dll tmp.def RcppExports.o clifford.o -Ld:/Compiler/gcc-4.9.3/local330/lib/x64 -Ld:/Compiler/gcc-4.9.3/local330/lib -LD:/RCompile/recent/R-4.1.2/bin/x64 -lR
installing to d:/RCompile/CRANguest/R-release/lib/00LOCK-clifford/00new/clifford/libs/x64
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
** installing vignettes