bug-gmp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug in mpn_get_str


From: Scott Owens
Subject: Bug in mpn_get_str
Date: Sat, 10 Feb 2001 17:01:03 -0700 (MST)

Hello,

Using GMP-3.1.1 this program:

#include <stdio.h>
#include <gmp.h>

int main(int argc, char** argv)
{
  char str[1000];
  long array[3];
  

  array[0] = -99612771;
  array[1] = 1734723475;
  array[2] = 0;

  mpn_get_str(str, 10, array, 2);

  printf("%d\n", array[2]);

}

prints 1 when is ought to print 0.  The offending assignment appears to be
line 166 of mpn/get_str.c.

configuration options: none
gcc -v: gcc version 2.95.2 19991024 (release)
uname -a: FreeBSD 4.2-STABLE
config.guess: pentium2-pc-freebsd4.2


-Scott Owens (address@hidden)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]