diff options
author | emaste <emaste@FreeBSD.org> | 2014-09-04 20:49:11 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2014-09-04 20:49:11 +0000 |
commit | ae111330ce92f88fb725388657403bf2a6f3c464 (patch) | |
tree | bdada9fef57b9f000f0a24af6e1368b41c1e1a8a /sys | |
parent | f8ae63e6ed599e0d9fdf0a1ee4a806a87c570040 (diff) | |
download | FreeBSD-src-ae111330ce92f88fb725388657403bf2a6f3c464.zip FreeBSD-src-ae111330ce92f88fb725388657403bf2a6f3c464.tar.gz |
MFC r269077 (sbruno): libstand qdivrem warning fixes
libstand's qdivrem.c assumes that sizeof(int) == sizeof(long), this is not
true on amd64 I'm not quite positive this is the "correct" solution for
this but it does seem to compile and shut up the spew of warnings when
compiling libstand for userboot.
Add two _Static_asserts() so that in the future somebody will get a compile
failure if an architecture develops that violates the assumptions of this
code. (strongly suggested by jmg)
Change commetns to indicate int types instead of long. (noted by ian in
phabric review)
Phabric: https://phabric.freebsd.org/D443
Diffstat (limited to 'sys')
0 files changed, 0 insertions, 0 deletions