~ubuntu-branches/ubuntu/raring/tcl8.5/raring

« back to all changes in this revision

Viewing changes to generic/tclUtil.c

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2011-12-20 18:16:54 UTC
  • mfrom: (11.2.3 sid)
  • Revision ID: package-import@ubuntu.com-20111220181654-ucrvquqz66e1dv80
Tags: 8.5.11-1ubuntu1
* Resynchronise with Debian.  Remaining changes:
  - Don't use tcl itself to install things when building, to allow for
    cross-building.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1253
1253
            p[1] = '#';
1254
1254
            p += 2;
1255
1255
            src++;
1256
 
            length--;
 
1256
            length -= (length > 0);
1257
1257
        } else {
1258
1258
            conversion = CONVERT_BRACE;
1259
1259
        }
3165
3165
     * negating it produces the same value.
3166
3166
     */
3167
3167
 
3168
 
    if (n == -n) {
 
3168
    intVal = -n;                        /* [Bug 3390638] Workaround for*/
 
3169
    if (n == -n || intVal == n) {       /* broken compiler optimizers. */
3169
3170
        return sprintf(buffer, "%ld", n);
3170
3171
    }
3171
3172