Cleanup: Fix type-limits warning with GCC

Pull Request: https://projects.blender.org/blender/blender/pulls/138020
This commit is contained in:
Jesse Yurkovich
2025-04-25 23:59:15 +02:00
committed by Jesse Yurkovich
parent 347e294959
commit cdaa1ebe56
2 changed files with 2 additions and 2 deletions

View File

@@ -35,7 +35,7 @@ FCurve *create_fcurve(blender::animrig::Channelbag &channelbag,
}
/* Utility: fill in a single fcurve sample at the provided index. */
void set_fcurve_sample(FCurve *fcu, uint sample_index, const float frame, const float value)
void set_fcurve_sample(FCurve *fcu, int64_t sample_index, const float frame, const float value)
{
BLI_assert(sample_index >= 0 && sample_index < fcu->totvert);
BezTriple &bez = fcu->bezt[sample_index];

View File

@@ -36,7 +36,7 @@ FCurve *create_fcurve(blender::animrig::Channelbag &channelbag,
const int sample_count);
/* Utility: fill in a single fcurve sample at the provided index. */
void set_fcurve_sample(FCurve *fcu, uint sample_index, const float frame, const float value);
void set_fcurve_sample(FCurve *fcu, int64_t sample_index, const float frame, const float value);
/**
* Recursively invoke the given function on the given armature object's bones.