Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Ticket #1221 (closed defect: fixed)

Opened 4 months ago

Last modified 3 months ago

atomicIncrement/atomicDecrement only operate on one byte

Reported by: od Assigned to: sean
Priority: major Milestone: 0.99.8
Component: Core Functionality Version: 0.99.7 Dominik
Keywords: atomic Cc:

Description

import tango.core.Atomic;
import tango.text.convert.Integer;

void main()
{
  int x = ubyte.max;
  atomicIncrement(x);
  assert (x==256, toString(x));
}

tango.core.Exception.AssertException?@t.d(9): 0

The supplied patch should fix that problem.

Attachments

atomic.dif (1.9 kB) - added by od on 07/31/08 13:01:27.

Change History

07/31/08 13:01:27 changed by od

  • attachment atomic.dif added.

09/08/08 16:36:46 changed by sean

  • status changed from new to closed.
  • resolution set to fixed.

(In [3929]) Applied patch to fix atomicIncrement/atomicDecrement. This closes #1221