Re: [Vala] Int64 operations, I'm confused



The problem is that %lld doesn't work at all on Windows. Read the
e-mail Steven linked to again. :) You could try the following:

void main () {
    int64 val1 = 96;
    int64 val2 = val1 / 8;
    stdout.printf (@"val1: $val1, val2: $val2\n");

    int val4 = 96;
    int val5 = val4 / 8;
    stdout.printf (@"val4: $val4, val5: $val5\n");

    int64 val6 = 96;
    int val7 = (int) (val6 / 8);
    stdout.printf (@"val6: $val6, val7: $val7\n");
}


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