fix size_t issues and other 64bit-highlighted warnings
This commit is contained in:
parent
8c12c5ecaf
commit
e337c67566
4 changed files with 9 additions and 3 deletions
|
@ -1,5 +1,9 @@
|
|||
(Format: Year/Month/Day)
|
||||
Changes for 0.9.16:
|
||||
*06/04/06:
|
||||
* Fix build on amd64 - some more size_t propagation and includes
|
||||
(Simon)
|
||||
FbTk/... Text.hh/cc Font.cc
|
||||
*06/04/05:
|
||||
* Fix gcc 2.95.4 build error in ScreenPlacement.hh (Simon)
|
||||
ScreenPlacement.hh
|
||||
|
|
|
@ -250,7 +250,7 @@ Font::Font(const char *name):
|
|||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
cerr<<"FbTk::Font m_iconv = "<<(int)m_iconv<<endl;
|
||||
cerr<<"FbTk::Font m_iconv = "<<m_iconv<<endl;
|
||||
#endif // DEBUG
|
||||
|
||||
if (name != 0) {
|
||||
|
|
|
@ -32,7 +32,7 @@ namespace FbTk {
|
|||
|
||||
int doAlignment(int max_width, int bevel, FbTk::Justify justify,
|
||||
const FbTk::Font &font, const char * const text,
|
||||
unsigned int textlen, unsigned int &newlen) {
|
||||
size_t textlen, size_t &newlen) {
|
||||
|
||||
if (text == 0 || textlen == 0)
|
||||
return 0;
|
||||
|
|
|
@ -24,6 +24,8 @@
|
|||
#ifndef FBTK_TEXT_HH
|
||||
#define FBTK_TEXT_HH
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
namespace FbTk {
|
||||
|
||||
class Font;
|
||||
|
@ -37,7 +39,7 @@ enum Orientation { ROT0=0, ROT90, ROT180, ROT270 };
|
|||
*/
|
||||
int doAlignment(int max_width, int bevel, FbTk::Justify justify,
|
||||
const FbTk::Font &font, const char * const text,
|
||||
unsigned int textlen, unsigned int &newlen);
|
||||
size_t textlen, size_t &newlen);
|
||||
|
||||
/**
|
||||
There are 3 interesting translations:
|
||||
|
|
Loading…
Reference in a new issue