Just fix some warnings for Haiku as well.

One of them was a missing prototype, the other was likely some strangeness in the definition of size_t.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1953 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Adrien Destugues
2012-05-12 11:48:39 +00:00
parent 93c4832138
commit 235f7d4d1c
3 changed files with 10 additions and 1 deletions

View File

@@ -1621,7 +1621,7 @@ void Open_window(word width,word height, const char * title)
Block(Window_pos_X+(Menu_factor_X<<3),Window_pos_Y+(12*Menu_factor_Y),(width-16)*Menu_factor_X,Menu_factor_Y,MC_White);
title_length = strlen(title);
if (title_length+2 > width/8)
if (title_length+2 > (size_t)(width/8))
title_length = width/8-2;
Print_in_window_limited((width-(title_length<<3))>>1,3,title,title_length,MC_Black,MC_Light);