Bruce Bartie 0 Posted October 2, 2007 Report Share Posted October 2, 2007 Bug description: When using a GLOBAL signed long variable, it fails to initialize to 0. The 3rd byte does not clear and all attempts to clear it fails. When using a local signed long the problem does NOT seem to occur. Tried the following: signed long ul1; ul1 =0; // fails ul1 = ul1&0x00000000; Using the float.h and float.pic16.lib Steps to reproduce: signed long ul1; void function(void) { ul1=0; } Expected behaviour: The 3rd byte of the variable fails to clear Is the problem 100% reproduceable: Happens every time. Cannot make it go away. IDE version: MPLAB 7.62 Compiler: BoostC 6.81 Target device: PIC16F913 OS: Windows XP SP2 Quote Link to post Share on other sites
Pavel 0 Posted October 3, 2007 Report Share Posted October 3, 2007 Can not reproduce. Code initializes variable correctly. Please send project that shows this problem to support@sourceboost.com signed long ul1; void main() { ul1=0; while( 1 ); } Regards, Pavel Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.