Suitable for the problem described above the following simple statements seem to have compiler problems:
voidOnStart() {
// No problem in the next two lines:int int_min_1 = -2147483647;
PrintFormat("%d",int_min_1); // Output -2147483647 - correct// The following statement generates a compiler warning:int int_min_2 = -2147483648; // Warning 'truncation of constant value'PrintFormat("%d",int_min_2); // Output -2147483648 - correct// The following statement does not generate any compiler warning or error// although out of int rangeint int_min_3 = -2147483649; // No warningPrintFormat("%d",int_min_3); // Output 2147483647 - incorrect// Same holds for here:// The following statement does not generate any compiler warning or error// although out of int rangeint int_min_4 = -4294967295; // No warningPrintFormat("%d",int_min_4); // Output 1 - incorrect
}
Is there any moderator could take a few minutes to report this bug to the dev team ?
As I see - you already reported to "MetaTrader Questions and Answers" group so I hope that will check it (if they have enough technical details and if they are able to reproduce this issue so I hope they will fix it).
Sergey Golubev #: As I see - you already reported to "MetaTrader Questions and Answers" group so I hope that will check it (if they have enough technical details and if they are able to reproduce this issue so I hope they will fix it).
Yes, actually I did report a few times in that group but I got no reply.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Suitable for the problem described above the following simple statements seem to have compiler problems:
Matthias
Is there any moderator could take a few minutes to report this bug to the dev team ?
Is there any moderator could take a few minutes to report this bug to the dev team ?
As I see - you already reported to "MetaTrader Questions and Answers" group so I hope that will check it (if they have enough technical details and if they are able to reproduce this issue so I hope they will fix it).
Yes, actually I did report a few times in that group but I got no reply.
Thank you.
Thank you all
It was wrong decision in the past to use uint type for the integers between INT_MAX and UINT_MAX
Fixed. Now integer constants can be of type int, long and ulong, depends on the value
Thank you all
It was wrong decision in the past to use uint type for the integers between INT_MAX and UINT_MAX
Fixed. Now integer constants can be of type int, long and ulong, depends on the value
Thank you.
Thank you all
It was wrong decision in the past to use uint type for the integers between INT_MAX and UINT_MAX
Fixed. Now integer constants can be of type int, long and ulong, depends on the value
Sorry the problem persists, using version 3446
I did test on build 3446.
The result shows the bug has been fixed.