Discussion:
[Freeciv-Dev] [bug #24992] Trying to put 387147 into 16 bits
wotan
2016-08-17 14:27:42 UTC
Permalink
URL:
<http://gna.org/bugs/?24992>

Summary: Trying to put 387147 into 16 bits
Project: Freeciv
Submitted by: wotan
Submitted on: Wed 17 Aug 2016 02:27:41 PM UTC
Category: client-gtk-3.0
Severity: 3 - Normal
Priority: 5 - Normal
Status: None
Assigned to: None
Originator Email:
Open/Closed: Open
Release: svn
Discussion Lock: Any
Operating System: GNU/Linux
Planned Release:
Contains string changes: None

_______________________________________________________

Details:

Trying to put 387147 into 16 bits; it will result 59467 at receiving side.
in dio_put_uint16_raw() [dataio_raw.c::288]: assertion '!((int) (__extension__
({ unsigned short int __v, __x = (unsigned short int) (x); if
(__builtin_constant_p (__x)) __v = ((unsigned short int) ((((__x) >> 8) &
0xff) | (((__x) & 0xff) << 8))); else __asm__ ("rorw $8, %w0" : "=r" (__v) :
"0" (__x) : "cc"); __v; })) != value)' failed.
Please report this message at http://gna.org/projects/freeciv/
Trying to put 392047 into 16 bits; it will result 64367 at receiving side.

ruleset experimental




_______________________________________________________

Reply to this item at:

<http://gna.org/bugs/?24992>

_______________________________________________
Message sent via/by Gna!
http://gna.org/
Marko Lindqvist
2017-05-09 15:43:50 UTC
Permalink
Update of bug #24992 (project freeciv):

Category: client-gtk-3.0 => general
Status: None => Ready For Test
Planned Release: => 3.0.0, 3.1.0

_______________________________________________________

Follow-up Comment #1:

Hard to tell from the report if it's the same one I found, but handling this
as the same:
When AI tests techs it could research, global_advance_count is increased, but
never restored. The more serious consequence than network protocol warning of
this is that it breaks MinTechs requirement type.

Fix attached.

(file #29966)
_______________________________________________________

Additional Item Attachment:

File name: GlobalAdvanceCountRestore.patch Size:0 KB


_______________________________________________________

Reply to this item at:

<http://gna.org/bugs/?24992>

_______________________________________________
Message sent via/by Gna!
http://gna.org/
Marko Lindqvist
2017-05-11 14:15:40 UTC
Permalink
Update of bug #24992 (project freeciv):

Status: Ready For Test => Fixed
Assigned to: None => cazfi
Open/Closed: Open => Closed


_______________________________________________________

Reply to this item at:

<http://gna.org/bugs/?24992>

_______________________________________________
Message sent via/by Gna!
http://gna.org/

Continue reading on narkive:
Loading...