* numbers.c (big2str): Protect t from garbage collection until
authorJim Blandy <jimb@red-bean.com>
Sat, 10 Oct 1998 12:59:37 +0000 (12:59 +0000)
committerJim Blandy <jimb@red-bean.com>
Sat, 10 Oct 1998 12:59:37 +0000 (12:59 +0000)
we're done.  (Thanks to Gary Houston.)

libguile/numbers.c

index 3a3e10a..d1818b0 100644 (file)
@@ -1418,7 +1418,8 @@ big2str(b, radix)
     for(i = j;j < SCM_LENGTH(ss);j++) s[ch+j-i] = s[j]; /* jeh */
     scm_vector_set_length_x(ss, (SCM)SCM_MAKINUM(ch+SCM_LENGTH(ss)-i)); /* jeh */
   }
-  return ss;
+
+  return scm_return_first (ss, t);
 }
 #endif