Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mapcode-foundation/mapcode-cpp
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: feat/optimize
Choose a base ref
Loading
...
head repository: mapcode-foundation/mapcode-cpp
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Loading
Checking mergeability… Don’t worry, you can still create the pull request.
  • 4 commits
  • 1 file changed
  • 2 contributors

Commits on May 28, 2026

  1. Fix critical and major code review issues

    - Replace memcmp-based NaN/Inf detection with isnan()/isinf() from <math.h>
      (portable, correct for all NaN bit patterns, and now checks latDeg for Inf too)
    - Fix off-by-one in encodeLatLonToSelectedMapcode: > should be >= for index bound
    - Remove always-false ASSERT after *s=0 in encodeExtension
    - Fix convertFromAbjad/convertToAbjad to null-check strchr return before arithmetic
    - Allow TERRITORY_NONE/TERRITORY_UNKNOWN in encodeLatLonToSingleMapcode per docs
    - Fix convertUtf16ToUtf8 to return start pointer instead of post-null end pointer
    - Explicitly initialize GLOBAL_MAKEISO_PTR (was accidentally correct via NULL)
    - Replace sprintf with snprintf in convertToRoman (mapcode_legacy.c)
    - Change UWORD from unsigned short int to uint16_t; add #include <stdint.h>
    - Replace magic constant 128 with MAX_MAPCODE_RESULT_ASCII_LEN in encoderEngine
    - Add regression tests for all fixed bugs in testBugFixes()
    
    Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
    rijnb and claude committed May 28, 2026
    Configuration menu
    Copy the full SHA
    a21ef29 View commit details
    Browse the repository at this point in the history
  2. updagted version

    rijnb committed May 28, 2026
    Configuration menu
    Copy the full SHA
    794e31f View commit details
    Browse the repository at this point in the history
  3. Merge branch 'feat/optimize'

    rijnb committed May 28, 2026
    Configuration menu
    Copy the full SHA
    400c405 View commit details
    Browse the repository at this point in the history
  4. updated README

    rijnb committed May 28, 2026
    Configuration menu
    Copy the full SHA
    85b4d82 View commit details
    Browse the repository at this point in the history
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.