|
From: | Redsun |
Subject: | [Wesnoth-patches] [patch #3641] Remove a compilation warning |
Date: | Thu, 13 Jan 2005 02:44:16 +0000 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; fr-FR; rv:1.7.5) Gecko/20041108 Firefox/1.0 |
This is an automated notification sent by Savannah. It relates to: patch #3641, project Battle for Wesnoth ============================================================================== OVERVIEW of patch #3641: ============================================================================== URL: <http://savannah.nongnu.org/patch/?func=detailitem&item_id=3641> Summary: Remove a compilation warning Project: Battle for Wesnoth Submitted by: redsun Submitted on: jeu 13.01.2005 à 02:44 Category: None Priority: 5 - Normal Status: None Privacy: Public Assigned to: None Originator Email: Open/Closed: Open _______________________________________________________ Replace " template<typename T> inline bool is_odd(T num) { return (static_cast<unsigned int>(num > 0 ? num : -num)&1) == 1; } " by " template<typename T> inline bool is_odd(T num) { if (num >= 0) return ((num & 1) == 1); else return ((-static_cast<int>(num) & 1) == 1); } " in util.hpp line 34 ============================================================================== This item URL is: <http://savannah.nongnu.org/patch/?func=detailitem&item_id=3641> _______________________________________________ Message posté via/par Savannah http://savannah.nongnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |