Abhishekmishra2808 commented on code in PR #3973:
URL: https://github.com/apache/nuttx-apps/pull/3973#discussion_r4506920507
##########
system/flatbuffers/flatbuffers.patch:
##########
@@ -20,27 +19,26 @@ index 5c4cae79..1a631641 100644
// If activate should be declared and included first.
diff --git a/include/flatbuffers/default_allocator.h
b/include/flatbuffers/default_allocator.h
-index d4724122..975d9380 100644
---- a/include/flatbuffers/default_allocator.h
-+++ b/include/flatbuffers/default_allocator.h
-@@ -39,24 +39,18 @@ class DefaultAllocator : public Allocator {
+--- a/include/flatbuffers/default_allocator.h 2025-09-24 05:18:02.000000000
+0000
++++ b/include/flatbuffers/default_allocator.h 2026-11-04 13:31:39.230535284
+0000
+@@ -39,24 +39,18 @@
// This is to avoid having a statically or dynamically allocated default
// allocator, or having to move it between the classes that may own it.
- inline uint8_t *Allocate(Allocator *allocator, size_t size) {
+ inline uint8_t* Allocate(Allocator* allocator, size_t size) {
- return allocator ? allocator->allocate(size)
- : DefaultAllocator().allocate(size);
Review Comment:
Upstream v25 already uses that spacing; the hunk only removes the
null-allocator fallback.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]