|
From: <md...@us...> - 2008-06-12 12:17:12
|
Revision: 5478
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5478&view=rev
Author: mdboom
Date: 2008-06-12 05:17:07 -0700 (Thu, 12 Jun 2008)
Log Message:
-----------
Fix compiler warnings.
Modified Paths:
--------------
trunk/matplotlib/src/ft2font.cpp
Modified: trunk/matplotlib/src/ft2font.cpp
===================================================================
--- trunk/matplotlib/src/ft2font.cpp 2008-06-11 18:35:01 UTC (rev 5477)
+++ trunk/matplotlib/src/ft2font.cpp 2008-06-12 12:17:07 UTC (rev 5478)
@@ -74,15 +74,15 @@
if (height < 0) height = 1;
size_t numBytes = width*height;
- if (width != _width || height != _height) {
+ if ((unsigned long)width != _width || (unsigned long)height != _height) {
if (numBytes > _width*_height) {
delete [] _buffer;
_buffer = NULL;
_buffer = new unsigned char [numBytes];
}
- _width = width;
- _height = height;
+ _width = (unsigned long)width;
+ _height = (unsigned long)height;
}
memset(_buffer, 0, numBytes);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|