objeck / objeck-lang

Objeck is a modern object-oriented programming language with functional features tailored for machine learning. It emphasizes expression, simplicity, portability, and scalability. The programming environment consists of a compiler, virtual machine, REPL shell, and command line debugger with IDE plugins.
https://objeck.org
Other
154 stars 11 forks source link

UCRT64 -Wsign-compare #426

Closed ghost closed 9 months ago

ghost commented 9 months ago
g++ -m64 -O3 -Wall -std=c++17 -pthread -D_MSYS2 -D_X64 -D_WIN32 -D_OBJECK_NATIVE_LIB_PATH -Wno-uninitialized -Wno-unknown-pragmas -Wno-unused-function -Wno-unused-variable -Wno-int-to-pointer-cast -Wno-unused-but-set-variable -Wno-dangling-pointer -c common.cpp
common.cpp: In static member function 'static bool TrapProcessor::SockTcpInString(StackProgram*, size_t*, size_t*&, long int*&, StackFrame*)':
common.cpp:3836:32: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long long unsigned int'} [-Wsign-compare]
 3836 |       while(!end_line && index < array[0] - 1);
      |                          ~~~~~~^~~~~~~~~~~~~~
common.cpp: In static member function 'static bool TrapProcessor::SockTcpSslInString(StackProgram*, size_t*, size_t*&, long int*&, StackFrame*)':
common.cpp:3975:32: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long long unsigned int'} [-Wsign-compare]
 3975 |       while(!end_line && index < array[0] - 1);
      |                          ~~~~~~^~~~~~~~~~~~~~
objeck commented 9 months ago

Thanks, I will look into this more. I am aware of warnings that MSYS2 raises, which VS does not.

objeck commented 9 months ago

Fixed