1
0
Commit Graph

79 Commits

Author SHA1 Message Date
linnemannr
ee34e7131a Fix FreeBSD/clang errors caused by -Werror
With FreeBSD/clang, -Werror combined with the configured warning flags yields
some fatal errors, specifically related to signed conversion, 64 to 32 bit
conversion, and tautological compares.

CONTRIBUTORS

	Add myself to the contributor list

src/Generating/FinishGen.cpp

	In cFinishGenPassiveMobs::GetRandomMob(), change the type of RandMob
	from size_t to the difference_type of the ListOfSpawnables iterator
	MobIter. Using size_t triggers a 64 bit to 32 bit conversion if the
	difference_type of the iterator class is 64 bit

	Also explicitly cast the noise expression to unsigned long so we don't
	get a signed conversion warning from the modulo against
	ListOfSpawnables.size()

src/OSSupport/StackTrace.cpp

	FreeBSD 10 and above includes a non glibc implementation of benchmark()
	for which size_t, not int, is the return type. To account for this and
	prevent a signed conversion warning, abstract the type for numItems with
	a macro btsize

src/StringUtils.h

	In StringToInteger(), correct a tautological compare warning for
	unsigned types with the template. If T is unsigned, comparing
	std::numeric_limits<T>::min() to the unsigned result is always
	false. That control can enter this branch in an evaluated template with
	an unsigned type T may also permit a signed number to be parsed and
	erroneously stripped of its signedness at runtime. To guard against this
	and avoid the warning in the case that the number parsed from the string
	is non-positive, return false and don't try to parse if T is unsigned
	and control enters the non-positive branch
2015-05-30 02:23:57 -06:00
Mathias
c6d2d1d715 Update CONTRIBUTORS 2015-05-25 20:23:02 +03:00
Alexander Harkness
ae55723c3c Update CONTRIBUTORS 2015-05-24 09:28:28 +01:00
Lukas Pioch
1f18a0c8af Add Seadragon91 to contributors 2015-05-24 10:11:51 +02:00
worktycho
c0d7b4d569 Merge pull request #2030 from beeduck/master
Issue #1868 and Issue #1984
2015-05-21 07:50:30 +01:00
b33duck
d7aa1c0434 Added beeduck to contributors 2015-05-20 16:24:30 -07:00
Alexander Harkness
d1a0717a57 Improved contributor 2015-05-19 09:27:14 +01:00
wiseoldman95
31f9d111d7 Added myself to CONTRIBUTORS. Note: I'm formerly wiseoldman95 2015-05-02 18:38:19 +03:00
p-mcgowan
a36e7669a7 added p-mcgowan to contributors 2014-12-04 01:14:38 -08:00
M10360
02828304c2 Added M10360. 2014-11-29 02:02:35 -06:00
Julian Laubstein
403f8581cf Added mechanics placeable on halfslabs 2014-10-19 15:01:01 +02:00
WebFreak001
cea0707ad5 Removed my license, added me to CONTRIBUTORS 2014-10-05 11:35:29 +02:00
Masy98
0b16bbfc01 Added me to the contributors list 2014-09-14 17:58:09 +02:00
Howaner
57d415e38b Added me to the CONTRIBUTORS list. I hope it is ok. 2014-07-18 01:28:56 +02:00
Alexander Harkness
d33881d752 Restored style continuity. 2014-06-21 21:07:31 +01:00
STRWarrior
1da1b513e6 Updated CONTRIBUTORS file 2014-06-21 20:26:40 +02:00
Alexander Harkness
5950212829 Test 2014-06-11 07:40:58 +01:00
Kirill Kirilenko
2a52b390c0 Monster's nominal speed was increased. 2014-02-01 20:38:53 +04:00
Alexander Harkness
f9a4c49fd4 Contributors now match real life, and are alpha-sorted. 2014-01-31 17:16:08 +00:00
andrew
9a9b51a513 Basic command block implementation 2014-01-18 15:16:47 +02:00
Morgan Redshaw
782818ffb5 Fixed a cPlayer::IsGameModeAdventure. It was determined based off of gmCreate rather than gmAdventure. 2013-12-30 21:30:20 -07:00
tonibm19
0b49f896eb Added myself to contributors 2013-12-24 18:50:54 +01:00
Alexander Harkness
4fcc806fb9 update d the contrib file. 2013-12-10 14:17:24 +00:00
Daniel O'Brien
3b47a07bac Player Xp 2013-11-14 00:50:47 +11:00
Alexander Harkness
69fcf3188a Changed a line, new PR system test. 2013-08-15 18:11:35 +01:00
STRWarrior
18fcab06ce Added Luksor to contributors list. 2013-08-15 13:50:49 +02:00
STRWarrior
1b097d2cb4 Added mtilden to contributors list. 2013-08-14 13:09:13 +02:00
STRWarrior
64345fe288 Added some old contributors. 2013-08-14 12:16:05 +02:00
Alexander Harkness
5f1607c2e8 Added a contributors file. 2013-07-27 14:39:32 +01:00