www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21578] New: core.atomic.atomicFetchSub for pointers

https://issues.dlang.org/show_bug.cgi?id=21578

          Issue ID: 21578
           Summary: core.atomic.atomicFetchSub for pointers incorrectly
                    calls wrong function from core.internal.atomic
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: druntime
          Assignee: nobody puremagic.com
          Reporter: petar.p.kirov gmail.com

Likely due to a copy-paste bug `core.atomic.atomicFetchSub` wrongly calls
`core.internal.atomic.atomicFetchAdd` instead of
`core.internal.atomic.atomicFetchSub`.

--
Jan 24