Skip to content

Commit

Permalink
Contact.cpp: getter should de-reference a "const" object
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Jan 26, 2025
1 parent cf62d7f commit b322f5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/native/glue/co/Contact.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2024 Stephen Gold
Copyright (c) 2024-2025 Stephen Gold
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -80,7 +80,7 @@ JNIEXPORT jlong JNICALL Java_com_github_stephengold_joltjni_Contact_getCharacter
(JNIEnv *, jclass, jlong contactVa) {
const CharacterVirtual::Contact * const pContact
= reinterpret_cast<CharacterVirtual::Contact *> (contactVa);
CharacterVirtual * const pResult = pContact->mCharacterB;
const CharacterVirtual * const pResult = pContact->mCharacterB;
return reinterpret_cast<jlong> (pResult);
}

Expand Down

0 comments on commit b322f5a

Please sign in to comment.