Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bbbd9cb

Browse files
committed
Fix compiler warnings.
svn path=/trunk/matplotlib/; revision=5478
1 parent 6d701e5 commit bbbd9cb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/ft2font.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,15 @@ void FT2Image::resize(long width, long height) {
7474
if (height < 0) height = 1;
7575
size_t numBytes = width*height;
7676

77-
if (width != _width || height != _height) {
77+
if ((unsigned long)width != _width || (unsigned long)height != _height) {
7878
if (numBytes > _width*_height) {
7979
delete [] _buffer;
8080
_buffer = NULL;
8181
_buffer = new unsigned char [numBytes];
8282
}
8383

84-
_width = width;
85-
_height = height;
84+
_width = (unsigned long)width;
85+
_height = (unsigned long)height;
8686
}
8787

8888
memset(_buffer, 0, numBytes);

0 commit comments

Comments
 (0)