Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: bb3128532a0d4f2d7509ba4eb5ceb01687a42a4e72d3a6649976368f5993de7c
Ticket: 0842331eba4e78318b795abcfddf84ad878311f1
[scan _ %d] 64-bit issue
User & Date: chrstphrchvz on 2022-04-07 17:53:52
Changes

  1. icomment:
    <blockquote>Without any size modifier (just <tt>%d</tt>) I'd expect to get a large positive number.</blockquote>
    
    The [https://www.tcl.tk/man/tcl8.6/TclCmd/scan.html#M7|documented behavior] of not specifying a size modifier is the same as using the <tt>h</tt> size modifier, which restricts the range to that of <tt>expr int(…)</tt> which is determined by <tt>$tcl_platform(wordSize)</tt>. The scan range is unlimited only when the <tt>ll</tt> size modifier is used.
    
  2. login: "chrstphrchvz"
  3. mimetype: "text/x-fossil-wiki"