# HG changeset patch # User Extrawurst # Date 1291929650 -3600 # Node ID f897d96cc7c9ee5cd8375912c8154ed4a6025b89 # Parent eb61cc181345be8123b903fdec71bb48c758beee cleanup diff -r eb61cc181345 -r f897d96cc7c9 trunk/tests/ChipmunkDemos/drawSpace.d --- a/trunk/tests/ChipmunkDemos/drawSpace.d Thu Dec 09 22:20:19 2010 +0100 +++ b/trunk/tests/ChipmunkDemos/drawSpace.d Thu Dec 09 22:20:50 2010 +0100 @@ -1,23 +1,6 @@ -/* Copyright (c) 2007 Scott Lembcke - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ + +// written in the D programming language + module drawSpace; import derelict.opengl.gl; @@ -406,7 +389,7 @@ static cpHashValue hash_func(cpHashValue x, cpHashValue y, cpHashValue n) { - return cast(cpHashValue)((x*1640531513uL ^ y*2654435789uL) % n); + return cast(cpHashValue)(( (x*1640531513uL) ^ (y*2654435789uL) ) % n); } static void