all repos — fluxbox @ e337c67566ab8dd722ac2e93edeb10098ab60154

custom fork of the fluxbox windowmanager

fix size_t issues and other 64bit-highlighted warnings
simonb simonb
commit

e337c67566ab8dd722ac2e93edeb10098ab60154

parent

8c12c5ecaf4ec6e1ad729115732f5579cbd4a788

4 files changed, 9 insertions(+), 3 deletions(-)

jump to
M ChangeLogChangeLog

@@ -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
M src/FbTk/Font.ccsrc/FbTk/Font.cc

@@ -250,7 +250,7 @@ #endif // HAVE_ICONV

} #ifdef DEBUG - cerr<<"FbTk::Font m_iconv = "<<(int)m_iconv<<endl; + cerr<<"FbTk::Font m_iconv = "<<m_iconv<<endl; #endif // DEBUG if (name != 0) {
M src/FbTk/Text.ccsrc/FbTk/Text.cc

@@ -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;
M src/FbTk/Text.hhsrc/FbTk/Text.hh

@@ -24,6 +24,8 @@

#ifndef FBTK_TEXT_HH #define FBTK_TEXT_HH +#include <sys/types.h> + namespace FbTk { class Font;

@@ -37,7 +39,7 @@ Aligns the text after max width and bevel

*/ 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: