[Vala] Int64 operations, I'm confused
- From: raum no-log org
- To: vala-list gnome org
- Subject: [Vala] Int64 operations, I'm confused
- Date: Tue, 30 Jul 2013 15:44:02 +0200
There is something I do not understand. I try to make a simple operation
and here is the result.
(...)
int64 val1 = 96;
int64 val2 = val1 / 8;
stdout.printf ("val1: %lld, val2 : %d\n", val1, val2);
int val4 = 96;
int val5 = val4 / 8;
stdout.printf ("val4: %lld, val5 : %d\n", val4, val5);
(..)
Results :
val1: 96, val2 : 0
val4: 96, val5 : 12
In fact I want to use file.query_info() which returns an int64 for size
(actually 96 bytes). And I need to divide size by 8.... result => 0
Any advice ? :)
Thanks
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]