From db3e3255a8464794ebcd0b18492009402ef33dcd Mon Sep 17 00:00:00 2001 From: Vinzenz Feenstra Date: Fri, 14 Feb 2014 12:42:47 +0100 Subject: Addressed comments by Terseus to match the spec size_t -> long uint8_t -> unsigned char Signed-off-by: Vinzenz Feenstra --- platform/x11/os_x11.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'platform') diff --git a/platform/x11/os_x11.cpp b/platform/x11/os_x11.cpp index 1d00796ae9..d95818b4a1 100644 --- a/platform/x11/os_x11.cpp +++ b/platform/x11/os_x11.cpp @@ -1217,8 +1217,8 @@ void OS_X11::set_icon(const Image& p_icon) { int w = img.get_width(); int h = img.get_height(); - // We're using size_t to have wordsize (32Bit build -> 32 Bits, 64 Bit build -> 64 Bits - Vector pd; + // We're using long to have wordsize (32Bit build -> 32 Bits, 64 Bit build -> 64 Bits + Vector pd; pd.resize(2+w*h); @@ -1229,17 +1229,17 @@ void OS_X11::set_icon(const Image& p_icon) { DVector::Read r = img.get_data().read(); - size_t * wr = &pd[2]; + long * wr = &pd[2]; uint8_t const * pr = r.ptr(); for(int i=0;i