Project

General

Profile

Actions

Bug #239

closed

mapgenerator4() codeQL warning about bad oddness check

Added by Marko Lindqvist 11 months ago. Updated 10 months ago.

Status:
Closed
Priority:
Normal
Category:
Server
Target version:
Start date:
02/08/2024
Due date:
% Done:

0%

Estimated time:

Description

mapgenerator4() has a oddness check of form "x % 1 == 1", which would not work for negative numbers. The number is never negative in this code, but let's rework it to silence CodeQL warning anyway.


Files

Actions

Also available in: Atom PDF