int8
Posted: Fri Oct 03, 2008 4:12 pm
If i have well understood int8 stands for sbyte.
Now, this code is ok:
but this is ko:
as it sends:
00049.cobra(4): error: Incompatible types. Cannot assign value of type int on th
e right to int8 on the left.
What am i missing? I obtain the same error with int16 while it's ok with int32 and int64.
Now, this code is ok:
- Code: Select all
class Program
def main is shared
i08 as int8
i08 = 127
but this is ko:
- Code: Select all
class Program
def main is shared
i08 as int8
i08 = -1
as it sends:
00049.cobra(4): error: Incompatible types. Cannot assign value of type int on th
e right to int8 on the left.
What am i missing? I obtain the same error with int16 while it's ok with int32 and int64.