Changeset 11128


Ignore:
Timestamp:
02/06/07 14:23:25 (14 years ago)
Author:
piso
Message:

readRadix(): handle prefixed '+' character correctly (patch from Eric Marsden)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/lisp/Stream.java

    r11092 r11128  
    22 * Stream.java
    33 *
    4  * Copyright (C) 2003-2006 Peter Graves
    5  * $Id: Stream.java,v 1.151 2006-08-18 00:33:02 piso Exp $
     4 * Copyright (C) 2003-2007 Peter Graves
     5 * $Id: Stream.java,v 1.152 2007-02-06 14:23:25 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    13321332    if (s.indexOf('/') >= 0)
    13331333      return makeRatio(s, radix);
     1334    // Integer.parseInt() below handles a prefixed '-' character correctly, but
     1335    // does not accept a prefixed '+' character, so we skip over it here
     1336    if (s.charAt(0) == '+')
     1337      s = s.substring(1);
    13341338    try
    13351339      {
Note: See TracChangeset for help on using the changeset viewer.