public static int getTokenIntegerInternal(char[] buffer, int start, int end, int size) {
    { long result = Stella.getTokenLongIntegerInternal(buffer, start, end, size);

      if ((result > Stella.MOST_POSITIVE_INTEGER) ||
          (result < Stella.MOST_NEGATIVE_INTEGER)) {
        { OutputStringStream stream000 = OutputStringStream.newOutputStringStream();

          stream000.nativeStream.print("get-token-integer: integer overflow: `" + result + "'");
          throw ((StellaException)(StellaException.newStellaException(stream000.theStringReader()).fillInStackTrace()));
        }
      }
      return (((int)(result)));
    }
  }