Commit c2a2a721 authored by ROOL's avatar ROOL 🤖

Warning suppression

Detail:
  3 fewer compiler warnings.
Admin:
  Submission for the Paint bounty.
  Built, but no run time testing.
parent 617dbd01
......@@ -257,7 +257,7 @@ static void display_sprite_info (main_sprite *sprite)
dbox_setfield(d, d_Info_DPI, "?");
else
{
sprintf(temp,msgs_lookup("PntGF"),180.0f/(1<<xeig),180.0f/(1<<yeig));
sprintf(temp,msgs_lookup("PntGF"),180.0f/(float)(1L<<xeig),180.0f/(float)(1L<<yeig));
dbox_setfield(d, d_Info_DPI, temp);
}
}
......
......@@ -53,7 +53,7 @@ typedef struct Block_Header
int size; /*size excluding this header */
char *file; /*where first created */
int line; /*where first created */
int guard; /*an unlikely value */
unsigned int guard; /*an unlikely value */
}
Block_Header;
......
......@@ -45,7 +45,7 @@
typedef struct Block *Block;
struct Block
{ int guard;
{ unsigned int guard;
Block next;
Block prev;
int size;
......@@ -58,7 +58,7 @@ struct Block
#define BLOCK(N) \
struct \
{ int guard; \
{ unsigned int guard; \
Block next; \
Block prev; \
int size; \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment