Skip to content
Snippets Groups Projects
Commit 6b921638 authored by Fredrik Hübinette (Hubbe)'s avatar Fredrik Hübinette (Hubbe)
Browse files

removed a warning

Rev: src/error.c:1.5
Rev: src/gc.c:1.4
parent c5d981cb
Branches
Tags
No related merge requests found
...@@ -91,7 +91,7 @@ void va_error(char *fmt, va_list args) ...@@ -91,7 +91,7 @@ void va_error(char *fmt, va_list args)
abort(); abort();
} }
if(strlen(buf) >= sizeof(buf)) if((long)strlen(buf) >= (long)sizeof(buf))
fatal("Buffer overflow in error()\n"); fatal("Buffer overflow in error()\n");
push_string(make_shared_string(buf)); push_string(make_shared_string(buf));
......
...@@ -167,7 +167,7 @@ static INT32 hashprimes[] = ...@@ -167,7 +167,7 @@ static INT32 hashprimes[] =
2147483647,/* ~ 2^31 = 2147483648 */ 2147483647,/* ~ 2^31 = 2147483648 */
}; };
void do_gc() void do_gc(void)
{ {
double tmp; double tmp;
INT32 tmp2; INT32 tmp2;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment