X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=device%2Flib%2F_divuint.c;h=bc3a5b15a029b12eee350c173b1ad0ff043fd344;hb=99fcafaaddfe9eb3de89d61bf643cecacbb8a9d4;hp=2226f97cb6c1ee034038c537b81eb5e630aee1f2;hpb=b09af35f2f1cde7649d3ac4a6f5d2af6d97895a0;p=fw%2Fsdcc diff --git a/device/lib/_divuint.c b/device/lib/_divuint.c index 2226f97c..bc3a5b15 100644 --- a/device/lib/_divuint.c +++ b/device/lib/_divuint.c @@ -28,8 +28,12 @@ unsigned int _divuint (unsigned int a, unsigned int b) { unsigned int reste = 0 ; - unsigned short count = 16; + unsigned char count = 16; +#ifdef SDCC_STACK_AUTO + unsigned char c; +#else bit c; +#endif do{ // reste:a <- 0;