Re: [Vala] Int64 operations, I'm confused
- From: Simon Kågedal Reimer <skagedal gmail com>
- To: raum no-log org
- Cc: vala-list <vala-list gnome org>
- Subject: Re: [Vala] Int64 operations, I'm confused
- Date: Tue, 30 Jul 2013 16:57:57 +0200
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]