[Vala] [Genie] dict with int keys segfaults



Hi,

thanks for Vala/Genie, I find it really interesting and promising!

This Genie program segfaults in the has_key method:

[indent=2]

init
  var m = new dict of int,int
  if m.has_key(0)
    print "yes"
  else
    print "no"

This equivalent Vala program works as expected:

using Gee;

public class Main : Object {

    static void main () {
        var m = new HashMap<int, int> ();
        if (m.has_key(0))
            stdout.printf("yes\n");
        else
            stdout.printf("no\n");
    }
}


Are the two programs really equivalent or am I overlooking something?

Is this a Genie bug?

I'm using Vala 0.10.1 and LibGee 0.6.0

Thanks and keep up the great work on Vala/Genie!

ciao
ste




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]