Minor bug in substring

From: Raymond Toy <toy_at_rtp.ericsson.se>
Date: Wed, 06 Mar 1996 11:17:41 -0500

There is a minor bug in substring when the end index is not an
integer. The error message prints out the value of the start index.

The fix is simple. In STk_substring in str.c, change

  if ((to=STk_integer_value(end)) == LONG_MIN) Err(msg ,start);


  if ((to=STk_integer_value(end)) == LONG_MIN) Err(msg ,end);

Error messages will then point what really is wrong!

Received on Wed Mar 06 1996 - 17:21:56 CET

This archive was generated by hypermail 2.3.0 : Mon Jul 21 2014 - 19:38:59 CEST