Lars Gullik Bjønnes wrote:

> This patch fixes some GCC 3.3 warnings. If this is the best way to
> do it can be argued.
> 
> Comments?

-        theCatcode['&']  = catAlign;
+        theCatcode[static_cast<unsigned int>('\\')] = catEscape;

Why not:

        setCatcode('&', catAlign);

void setCatcode(char c, CATCODETYPE val) {
        theCatcode[static_cast<unsigned char>(c)] = val;
}

Saves polluting the source with loads of static_casts.

-- 
Angus

Reply via email to