Archived

This forum has been archived. Please start a new discussion on GitHub.

Patch #6 for Ice 3.1.0: byte sequences in dictionaries

dwayne
dwayne St. John's, Newfoundland
Hi,

The following patch is a fix for the slice2cpp compiler, which generates incorrect code when a byte sequence is used in a dictionary.

To apply the patch:

$ cd Ice-3.1.0
$ patch -p0 < patch.slice2cpp.txt

Regards,
Dwayne

Comments

  • FYI, this patch required a small tweak for me to get it to apply properly:

    The first hunk had a newline in it that wasn't in the original source for me. I used this hunk instead:

    *** 857,862 ****
    --- 857,866 ----
    StringList md;
    md.push_back("cpp:array");
    string tmpParam = "___";
    + //
    + // Catch some case in which it is not possible to just prepend
    + // underscores to param to use as temporary variable.
    + //
    if(fixedParam.find("(*") == 0)
    {
    tmpParam += fixedParam.substr(2, fixedParam.length() - 3);