Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • GHC GHC
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 5,247
    • Issues 5,247
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 577
    • Merge requests 577
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell CompilerGlasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #1128
Closed
Open
Issue created Jan 31, 2007 by humasect@trac-humasect

The impossible happened, code commented

initializeWorld = (\w -> do
		worldSetGravity w 0 (-1.0) 0
		worldSetERP w 0.2
		worldSetCFM w 1e-5
		worldSetContactMaxCorrectingVel w 0.9
		worldSetContactSurfaceLayer w 0.001
		worldSetAutoDisableFlag w 1),

these worldSet* functions are unsafe FFI calls. initializeWorld is Ptr Int -> IO ()

commenting this prevents this bug. this code is found in a top level declaration:

initiailLevel = Level {
 ...
}

of which contains the record for initializeWorld

Edited Mar 09, 2019 by thorkilnaur
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking