bugUnofficial CHM Specification - Bugs: bug #30093, Variable type (Signedness) of...

 
 

bug #30093: Variable type (Signedness) of specification fields

Submitted by:  Marco van de Voort <marcovje>
Submitted on:  Wed 09 Jun 2010 09:38:56 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 09 Jun 2010 09:38:56 AM UTC, original submission:

Many values in the spec are "dword" while signed values are assigned to them (usually -1 as special value).

This causes problems in FPC when people compile with extra runtime checks (that check ranges strictly). We can adjust the typing to signed (but that is a specification discrepancy), hence we decided to ask this upstream.

We can also disable checks for those units. (in theory we can also typecast each and every assignment but that is too painfull), but that is not so elegant.

Possible solutions: adapt types, or define the <0 cases not as -1 but as dword(-1) or $FFFFFFFF

Free Pascal mantis bug reference : 16669

Marco van de Voort <marcovje>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by marcovje (Submitted the item)
  • -unavailable- added by marcovje
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 09 Jun 2010 09:38:56 AM UTCmarcovjeCarbon-Copy-=>Added marcovje

    Back to the top


    Powered by Savane 3.1-cleanup