Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Magic around TclGetBytesFromObj issue with MS-VC 2015 64 bit

Closed / Fixed91c5932024bdf80bfc86735587425639303fb33bCreated 5 years agoUpdated 5 years ago
Descriptionwiki2022-03-17 12:49:41
In [fb0f56616f] (which should be similar to main), I get the following compile issue:
C:\test\tcl9.0_tip607-encoding-failindex\win\..\generic\tclCmdAH.c(477): warning C4133: "Funktion": Inkompatible Typen - von "size_t *" zu "int *"

The concerned line is:

bytesPtr = (char *) TclGetBytesFromObj(interp, data, &length);

length is of type size_t, but apparently, the function attends an int pointer.

There is magic in the definition to change automatically.

The environment is MS-VisualStudio 2015 with 64 bit native tools.

Thank you, Harlad

jan.nijtmanswiki2022-03-17 13:36:36

Fixed [here]. TclGetBytesFromObj() should simply be changed into Tcl_GetBytesFromObj().

Hope this helps, Jan Nijtmans

oehharwiki2022-03-17 14:06:02

Fixed by recent replacement of *TclGetBytesFromObj* by *TclGetBytesFromObj*.

Thanks, Harald

Log in (anonymous is fine) to add a comment.