[coyotos-dev] BigNum.cxx buglet?
Thomas Stratmann
thomas.stratmann at rub.de
Sun Sep 30 19:45:26 EDT 2007
I have a working version here, which means that capidl is neither
crashing nor looping endlessly. It is the result of the patch I sent
previously plus the one attached.
However, compiling coyotos gives the following error:
/usr/bin/ccache /coyotos/host/bin/i386-unknown-coyotos-gcc -g
-finline-limit=3000 -fno-strict-aliasing -I../../../../../sys
-I../../../../../sys/idl/BUILD/h -IBUILD -Wall -Winline -Wno-format
-Wno-char-subscripts -Werror -c openrcv-data.c -o BUILD/openrcv-data.o
cc1: warnings being treated as errors
In file included from openrcv-data.c:3:
../../../../../sys/idl/BUILD/h/idl/coyotos/Cap.h: In Funktion
»coyotos_Cap_destroy«:
../../../../../sys/idl/BUILD/h/idl/coyotos/Cap.h:255: Warnung:
Ganzzahlkonstante ist zu groß für »unsigned long«-Typ
../../../../../sys/idl/BUILD/h/idl/coyotos/Cap.h:255: Warnung: Große
Ganzzahl implizit auf vorzeichenlosen Typen abgeschnitten
../../../../../sys/idl/BUILD/h/idl/coyotos/Cap.h: In Funktion
»coyotos_Cap_getType«:
../../../../../sys/idl/BUILD/h/idl/coyotos/Cap.h:401: Warnung:
Ganzzahlkonstante ist zu groß für »unsigned long«-Typ
../../../../../sys/idl/BUILD/h/idl/coyotos/Cap.h:401: Warnung: Große
Ganzzahl implizit auf vorzeichenlosen Typen abgeschnitten
make[2]: *** [BUILD/openrcv-data.o] Fehler 1
make[2]: Verlasse Verzeichnis
'/home/thomas/coyotos/hg/coyotos-build/coyotos/src/sys/arch/i386/test-image/by-hand'
(sorry for using a localized compiler -- the first warning means
integer constant too big for unsigned long)
I'm afraid I am missing the understanding of implementation details to
understand where this might come from. I put an assertion in
BigNum::BigNum(size_t _nDigits, uint32_t* _digits, bool _negative)
to catch BigNums being constructed with more than two effective digits,
but it was not triggered.
Thomas
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: bignum2.patch
Url: http://www.coyotos.org/pipermail/coyotos-dev/attachments/20071001/5b2a307a/attachment-0001.pl
More information about the coyotos-dev
mailing list