Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
vala
vala
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 703
    • Issues 703
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 38
    • Merge Requests 38
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • External Wiki
    • External Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
  • GNOME
  • valavala
  • Issues
  • #915

Closed
Open
Opened Feb 29, 2020 by Космическое П.@kosmospredanie🏃

Allow passing unsigned integer to signed type in/out/ref parameter and vice versa

An example that needs this is AtomicInt methods:

namespace AtomicInt
    public int @get (ref int atomic)
    public void @set (ref int atomic, int newval)
    ....

If a uint value is passed to the atomic parameter, the compiler produces an error; error: Argument 1: Cannot convert from `uint' to `int'. According to GLib documentation, however, the atomic parameter could be either int or uint.

atomic : a pointer to a gint or guint

Edited Feb 29, 2020 by Космическое П.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
0.50
Milestone
0.50 (Past due)
Assign milestone
Time tracking
None
Due date
None
Reference: GNOME/vala#915