Commits

Volker Braun committed fdd5ba9

updated sources to gap-4.6.5

Comments (0)

Files changed (4)

     i = 0;
   }
 
+  while ((CHARS_STRING(str))[i] == '0' && i < len)
+    i++;
+    
+
   if ((len-i)*4 <= NR_SMALL_INT_BITS) {
     n = 0;
     p = CHARS_STRING(str);
        sign = 1;
        i = 0;
     }
-
+    
+    /* skip leading zeros */
+    while ((CHARS_STRING(str))[i] == '0' && i < len)
+        i++;
+    
     /* small int case */
     if ((len-i)*4 <= NR_SMALL_INT_BITS) {
        n = 0;
 /****************************************************************************
 **
 *V  SyKernelVersion  . . . . . . . . . . . . . . . . name of the architecture
-** do not edit the following line. Occurences of `4.6.4' and `today'
+** do not edit the following line. Occurences of `4.6.5' and `today'
 ** will be replaced by string matching by distribution wrapping scripts.
 */
-const Char * SyKernelVersion = "4.6.4";
+const Char * SyKernelVersion = "4.6.5";
 
 /****************************************************************************
 *V  SyWindowsPath  . . . . . . . . . . . . . . . . . default path for Windows
     (Int)TNAM_OBJ(pos), 0L);
     p = INT_INTOBJ(pos);
     if (p <= 0)
-      ErrorQuit("UNB_VEC9BIT: position must be positive", 0L, 0L);
+      ErrorQuit("UNB_VEC8BIT: position must be positive", 0L, 0L);
 
     /* if we unbind the last position keep the representation              */
     if ( LEN_VEC8BIT(list) < p ) {