Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b6eeaaf827786fea5198672e7db2806d00be623d26625b51c8f4c445a1bff337
Ticket: 36bcf04a704a22f3578ea0d93e0401eb5d0afcb3
Pointer size warnings when compiling on a 32-bit machine
User & Date: chrstphrchvz on 2023-08-10 11:45:06
Changes

  1. icomment:
    The warning is about how C considers pointers to different integer types to be incompatible, regardless of whether the types have the same size.
    
    <tt>TCL_SIZE_MAX == INT_MAX</tt> does not necessarily mean <tt>Tcl_Size</tt> is <tt>int</tt>. Using a temporary <tt>int</tt> avoids the warning; see attached patch.
    
  2. login: "chrstphrchvz"
  3. mimetype: "text/x-fossil-wiki"