Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d701e5 commit bbbd9cbCopy full SHA for bbbd9cb
1 file changed
src/ft2font.cpp
@@ -74,15 +74,15 @@ void FT2Image::resize(long width, long height) {
74
if (height < 0) height = 1;
75
size_t numBytes = width*height;
76
77
- if (width != _width || height != _height) {
+ if ((unsigned long)width != _width || (unsigned long)height != _height) {
78
if (numBytes > _width*_height) {
79
delete [] _buffer;
80
_buffer = NULL;
81
_buffer = new unsigned char [numBytes];
82
}
83
84
- _width = width;
85
- _height = height;
+ _width = (unsigned long)width;
+ _height = (unsigned long)height;
86
87
88
memset(_buffer, 0, numBytes);
0 commit comments