Skip to content

Commit 36742e6

Browse files
committed
Clarify int64 type and add something about using int and num type
1 parent 4907cc2 commit 36742e6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

doc/Language/nativecall.pod

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ likely grow with time).
6363
int8 (char in C)
6464
int16 (short in C)
6565
int32 (int in C)
66-
int64 (64-bit int in C)
66+
int64 (64-bit explicited int in C like int64_t in C99)
6767
long (32- or 64-bit, depends what long means locally)
6868
longlong (at least 64bits, what long long means locally)
6969
num32 (float in C)
@@ -74,6 +74,9 @@ likely grow with time).
7474
bool (bool from C99)
7575
size_t (size_t in C)
7676
77+
Don't use Perl 6 native type like C<int> or C<num> they could lead you to
78+
unwanting boundary issue between 32 bits and 64 bits system.
79+
7780
Note that the lack of a C<returns> trait is used to indicate void return type.
7881
Do I<not> use the 'void' type anywhere except in the Pointer parameterization.
7982

0 commit comments

Comments
 (0)