Skip to content
  1. Apr 13, 2023
  2. Apr 08, 2023
  3. Sep 17, 2022
  4. Aug 01, 2022
  5. Apr 04, 2022
  6. Feb 10, 2022
  7. Jan 30, 2022
  8. Nov 30, 2021
  9. Oct 15, 2021
  10. Mar 17, 2021
  11. Mar 07, 2021
  12. Feb 05, 2021
  13. Oct 23, 2020
  14. Feb 09, 2020
  15. Nov 25, 2019
  16. Oct 05, 2019
  17. Sep 25, 2019
  18. Aug 05, 2019
  19. Apr 01, 2019
  20. Mar 14, 2019
  21. Dec 16, 2018
  22. Feb 11, 2018
  23. Dec 11, 2017
  24. Sep 12, 2017
  25. Mar 21, 2017
  26. Feb 23, 2017
  27. Jan 17, 2017
  28. Dec 14, 2016
  29. Nov 23, 2016
    • Colomban Wendling's avatar
      Fix converting enumerations and flags to arrays · 72671f62
      Colomban Wendling authored and Rico Tzschichholz's avatar Rico Tzschichholz committed
      Enumerations and flags are classed types for Vala, not integers, so
      they don't fall in the `typeof(G) == typeof(int)` kind of tests. This
      leads to using the generic code in which Vala assumes pointer-sized
      elements, which is often not true for enumerations and flags.
      
      Add special case for those to use the `int` converters for enumerations
      and flags.
      
      This is most generally correct, but not always: the compiler will
      likely chose a larger type for a specific enumeration if one of its
      value is larger than `int`.  It would be tempting to use the
      enumeration's class minimum and maximum values to determine the
      appropriate type, but unfortunately the API for this uses int itself,
      so doesn't help.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=774669
      72671f62
  30. Oct 12, 2016