X-Git-Url: https://git.cryptolib.org/?p=arm-crypto-lib.git;a=blobdiff_plain;f=test_src%2Fstring-extras.c;h=18cf67f6f5ced5fc8cbdc8d080ca1ff462bff334;hp=8f216c2daee6cc5c0b8adfad40a38fbd02611531;hb=a0b23b3327c8bc2ecd7278c95662fdebf6f15d6b;hpb=498cf95d73faff93a848d2c0ffec3987769670bb 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';