Jump to content

Boostc Signed Long Fails To Initialize Correclty

Recommended Posts

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)





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

Link to post
Share on other sites

Can not reproduce. Code initializes variable correctly. Please send project that shows this problem to support@sourceboost.com


signed long ul1; 

void main()

while( 1 );





Link to post
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...