bugGNUstep - Bugs: bug #36824, NSArchiver barfs on const values

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #36824: NSArchiver barfs on const values

Submitted by:  Larry Campbell <lcampbel>
Submitted on:  Tue 10 Jul 2012 08:21:44 PM UTC  
 
Category: Base/FoundationSeverity: 3 - Normal
Item Group: BugStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Wed 11 Jul 2012 04:52:21 AM UTC, comment #2:

Thanks ... I comitted that change.

Richard Frith-Macdonald <CaS>
Project Member
Tue 10 Jul 2012 08:22:22 PM UTC, comment #1:

(I should have said "const types" not "const values". You know what I mean.)

Larry Campbell <lcampbel>
Tue 10 Jul 2012 08:21:44 PM UTC, original submission:

If you do something like this:

const unsigned char version = 1;
[[coder encodeValueOfObjCType:@encode(typeof(version)) at:&version];

an exception is thrown, because the typestring is "rC" where the 'r' type specifier means 'const', but encodeValueOfObjCType:at: doesn't skip type specifiers. I think it should; Mac OS X does.

Larry Campbell <lcampbel>

 

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 CaS (Posted a comment)
  • -unavailable- added by lcampbel (Submitted the item)
  •  

    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):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 11 Jul 2012 04:52:21 AM UTCCaSStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1