Abdelrazak Younes wrote:
Please review this patch; I am not quite sure these are the correct fixes for the MSVC warning. But it seems to parse math correctly.
>
-CatCode theCatcode[256];
+CatCode theCatcode[sizeof(lyx::char_type)];

Hm, is sizeof(lyx::char_type) not 4? I think you mean

   1 << (sizeof(lyx::char_type) * 8)

and then it becomes obvious that this is probably not such a great idea: Allocating 32 MB for this table where you only fill in the first 256 slots seems a little excessive.

Regards,
Asger

Reply via email to