[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Wesnoth-patches] [patch #3641] Remove a compilation warning
From: |
Guillaume Melquiond |
Subject: |
[Wesnoth-patches] [patch #3641] Remove a compilation warning |
Date: |
Thu, 13 Jan 2005 08:13:08 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.7.5) Gecko/20050110 Firefox/1.0 (Debian package 1.0+dfsg.1-2) |
This is an automated notification sent by Savannah.
It relates to:
patch #3641, project Battle for Wesnoth
==============================================================================
LATEST MODIFICATIONS of patch #3641:
==============================================================================
Posted by: Guillaume Melquiond <silene>
Posted on: 2005-01-13 08:13 (Europe/Paris)
_______________________________________________________
Follow-up Comment:
Hum... Can you tell us which warning it was? (the precise and complete
message). Especially necessary since the new code you propose is semantically
different from the old one.
As a side note, what you are submitting are not patches but bug-reports. A
patch is the result of the command "diff -u" (or even simpler for you if you
have wesnoth cvs repository: "cvs diff -u"), and hence can be automagically
applied to the code.
==============================================================================
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
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: jeu 13.01.2005 à 08:13 By: Guillaume Melquiond <silene>
Hum... Can you tell us which warning it was? (the precise and complete
message). Especially necessary since the new code you propose is semantically
different from the old one.
As a side note, what you are submitting are not patches but bug-reports. A
patch is the result of the command "diff -u" (or even simpler for you if you
have wesnoth cvs repository: "cvs diff -u"), and hence can be automagically
applied to the code.
==============================================================================
This item URL is:
<http://savannah.nongnu.org/patch/?func=detailitem&item_id=3641>
_______________________________________________
Message posté via/par Savannah
http://savannah.nongnu.org/