Mercurial > dwindows
comparison mac/dw.m @ 1446:0d4fdf646caf
Fix clang integer conversion warning on 64bit Mac.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Fri, 09 Dec 2011 21:24:31 +0000 |
parents | 02a329b2b0cd |
children | 632346743f46 |
comparison
equal
deleted
inserted
replaced
1445:8f7692fcad37 | 1446:0d4fdf646caf |
---|---|
8438 if((width < 1 || height < 1) && (thisbox = [[window contentView] box])) | 8438 if((width < 1 || height < 1) && (thisbox = [[window contentView] box])) |
8439 { | 8439 { |
8440 int depth = 0; | 8440 int depth = 0; |
8441 | 8441 |
8442 /* Calculate space requirements */ | 8442 /* Calculate space requirements */ |
8443 _resize_box(thisbox, &depth, width, height, 1); | 8443 _resize_box(thisbox, &depth, (int)width, (int)height, 1); |
8444 | 8444 |
8445 /* Might need to take into account the window border here */ | 8445 /* Might need to take into account the window border here */ |
8446 if(width < 1) width = thisbox->minwidth; | 8446 if(width < 1) width = thisbox->minwidth; |
8447 if(height < 1) height = thisbox->minheight; | 8447 if(height < 1) height = thisbox->minheight; |
8448 } | 8448 } |