Skip to content

Commit

Permalink
Merge latest master into qbootstrap, especially to get mark commit fi…
Browse files Browse the repository at this point in the history
…xes.
  • Loading branch information
jnthn committed May 17, 2012
2 parents d6e4019 + 215243f commit 082a2de
Show file tree
Hide file tree
Showing 29 changed files with 1,021 additions and 130 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -18,6 +18,7 @@ Makefile
*.dump
*.exe
*.suo
*.bundle
*~
*.pbc
src/ops/*.h
Expand Down
2 changes: 1 addition & 1 deletion 3rdparty/dyncall/GNUmakefile
Expand Up @@ -20,7 +20,7 @@
#

# FIXME: workaround for Parrot issue #735
CFLAGS := $(CFLAGS) -w
CFLAGS += -Wno-strict-prototypes

TOP = .
GMAKE_TOP ?= $(TOP)/buildsys/gmake
Expand Down
12 changes: 6 additions & 6 deletions 3rdparty/libtommath/bn_mp_radix_size.c
Expand Up @@ -24,12 +24,6 @@ int mp_radix_size (mp_int * a, int radix, int *size)

*size = 0;

/* special case for binary */
if (radix == 2) {
*size = mp_count_bits (a) + (a->sign == MP_NEG ? 1 : 0) + 1;
return MP_OKAY;
}

/* make sure the radix is in range */
if (radix < 2 || radix > 64) {
return MP_VAL;
Expand All @@ -40,6 +34,12 @@ int mp_radix_size (mp_int * a, int radix, int *size)
return MP_OKAY;
}

/* special case for binary */
if (radix == 2) {
*size = mp_count_bits (a) + (a->sign == MP_NEG ? 1 : 0) + 1;
return MP_OKAY;
}

/* digs is the digit count */
digs = 0;

Expand Down
2 changes: 1 addition & 1 deletion VERSION
@@ -1 +1 @@
2012.04
2012.04.1

0 comments on commit 082a2de

Please sign in to comment.