X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=test_src%2Fstring-extras.c;h=18cf67f6f5ced5fc8cbdc8d080ca1ff462bff334;hb=2b0000dcd4848a3231831a79e2cd35c049909ec9;hp=8f216c2daee6cc5c0b8adfad40a38fbd02611531;hpb=498cf95d73faff93a848d2c0ffec3987769670bb;p=arm-crypto-lib.git diff --git a/test_src/string-extras.c b/test_src/string-extras.c index 8f216c2..18cf67f 100644 --- a/test_src/string-extras.c +++ b/test_src/string-extras.c @@ -1,6 +1,6 @@ /* string_extras.c */ /* - This file is part of the AVR-Crypto-Lib. + This file is part of the ARM-Crypto-Lib. Copyright (C) 2008 Daniel Otte (daniel.otte@rub.de) This program is free software: you can redistribute it and/or modify @@ -96,7 +96,11 @@ char* ultoa(unsigned long a, char* buffer, uint8_t radix){ return buffer; } while(a){ + /* toolchain bug?? result = div(a, radix); + */ + result.quot = a/radix; + result.rem = a%radix; *ptr = result.rem; if(result.rem<10){ *ptr += '0';