message
stringlengths
6
474
diff
stringlengths
8
5.22k
Add missing underscore in bindswitch documentation The missing underscore after "toggle" causes the underline to continue for a whole sentence.
@@ -381,7 +381,7 @@ runtime. *bindswitch* [--locked] [--no-warn] <switch>:<state> <command> Binds <switch> to execute the sway command _command_ on state changes. Supported switches are _lid_ (laptop lid) and _tablet_ (tablet mode) - switches. Valid values for _state_ are _on_, _off_ and _toggle. These + switches. Vali...
fix the warning when compiling bsp_uart project
@@ -42,7 +42,7 @@ app_vars_t app_vars; void cb_compare(void); void cb_uartTxDone(void); -void cb_uartRxCb(void); +uint8_t cb_uartRxCb(void); //=========================== main ============================================ @@ -101,7 +101,7 @@ void cb_uartTxDone(void) { } } -void cb_uartRxCb(void) { +uint8_t cb_uartRxCb(v...
port handling not needed
@@ -139,10 +139,6 @@ static int cmd_debug_nodes( struct reply_t *r ) { static int cmd_announce( struct reply_t *r, const char hostname[], int port, int minutes ) { time_t lifetime; - if( port < 0 || port > 65534 ) { - return 1; - } - if( minutes < 0 ) { lifetime = LONG_MAX; } else { @@ -154,9 +150,7 @@ static int cmd_a...
Include lv_conf.h in lv_area.h
@@ -16,6 +16,11 @@ extern "C" { #include <string.h> #include <stdbool.h> #include <stdint.h> +#ifdef LV_CONF_INCLUDE_SIMPLE +#include "lv_conf.h" +#else +#include "../../../lv_conf.h" +#endif /********************* * DEFINES
ossl_cmp_msg_check_update(): fix two wrong error return values (-1 instead of 0)
@@ -775,6 +775,11 @@ int ossl_cmp_msg_check_update(OSSL_CMP_CTX *ctx, const OSSL_CMP_MSG *msg, CMP_R_RECIPNONCE_UNMATCHED)) return 0; + /* if not yet present, learn transactionID */ + if (ctx->transactionID == NULL + && !OSSL_CMP_CTX_set1_transactionID(ctx, hdr->transactionID)) + return 0; + /* * RFC 4210 section 5.1.1...
ci(micropython) add rp2 port Related:
@@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - port: ['unix', 'esp32', 'stm32'] + port: ['unix', 'esp32', 'stm32', 'rp2'] steps: - uses: ammaraskar/gcc-problem-matcher@master - name: Install Dependencies @@ -27,7 +27,7 @@ jobs: - name: Update ${{ matrix.port }} port submodules if: matrix.port != 'es...
Document port changes on client.
@@ -704,6 +704,7 @@ int quic_client(const char* ip_address_text, int server_port, struct sockaddr_storage local_address; if (picoquic_get_local_address(fd, &local_address) != 0) { memset(&local_address, 0, sizeof(struct sockaddr_storage)); + fprintf(stderr, "Could not read local address.\n"); } address_updated = 1; @@ ...
zuse: change name of +ordered-map to +on and add alias, change name of +traverse to +dip as per talk with ted
=/ b ;;((tree [key=key val=value]) a) ?> (apt:((ordered-map key value) ord) b) b -:: +ordered-map: treap with user-specified horizontal order +++ ordered-map on +:: +on: treap with user-specified horizontal order, ordered-map :: :: Conceptually smaller items go on the left, so the item with the :: smallest key can be p...
fix rtconfig.py param: DEVICE = cortex-m3 in other platform.
@@ -43,7 +43,7 @@ if PLATFORM == 'gcc': OBJDUMP = PREFIX + 'objdump' OBJCPY = PREFIX + 'objcopy' - DEVICE = ' -mcpu=cortex-m0plus -mthumb -ffunction-sections -fdata-sections' + DEVICE = ' -mcpu=cortex-m3 -mthumb -ffunction-sections -fdata-sections' CFLAGS = DEVICE + ' -Dgcc' AFLAGS = ' -c' + DEVICE + ' -x assembler-wit...
Enforce min/max on color picker rgb inputs
@@ -142,20 +142,24 @@ class CustomPalettePicker extends Component { } colorChange = e => { - if (e.target.id == "colorR") + const min = 0; + const max = 31; + const value = Math.max(min, Math.min(max, e.currentTarget.value)) + + if (e.target.id === "colorR") { - this.setState({currentR: e.target.value}); - this.setCurr...
Remove unnecessary condition in acquiring image data
@@ -3812,10 +3812,6 @@ Image_composite_mathematics(int argc, VALUE *argv, VALUE self) char compose_args[200]; rm_check_destroyed(self); - if (argc > 0) - { - composite_image = rm_check_destroyed(rm_cur_image(argv[0])); - } switch (argc) { @@ -3836,6 +3832,7 @@ Image_composite_mathematics(int argc, VALUE *argv, VALUE se...
build: fix 'make clean' issue Remove Bourne shell expansion in command. Make invokes /bin/sh, which is not necessarily bash, and recongize bash sppecific syntax.
@@ -38,7 +38,7 @@ gotest: image $(MAKE) -C $(subst -clean,,$@) clean clean: - $(MAKE) {contgen,boot,stage3,mkfs,examples,test}-clean + $(MAKE) $(addsuffix -clean,contgen boot stage3 mkfs examples test) $(MAKE) -C gotests clean $(Q) $(RM) -f $(FS) $(IMAGE) $(IMAGE).dup $(Q) $(RM) -fd $(dir $(IMAGE)) output
Remove debugging prints from util/add-depends.pl
@@ -15,13 +15,11 @@ my $buildfile = $config{build_file}; my $buildfile_new = "$buildfile.$$"; my $depext = $target{dep_extension} || ".d"; my @deps = - grep { print STDERR "$_ exists: ", -f $_ ? "yes" : "no", "\n"; -f $_ } + grep { -f $_ } map { (my $x = $_) =~ s|\.o$|$depext|; $x; } grep { $unified_info{sources}->{$_}...
Correct UART_INIT macro for F4 and F0 targets
@@ -221,7 +221,7 @@ extern uint8_t Uart8_RxBuffer[]; Uart##num##_PAL.Uart_cfg.cr1 = 0; \ Uart##num##_PAL.Uart_cfg.cr2 = 0; \ Uart##num##_PAL.Uart_cfg.cr3 = 0; \ - Uart##num##_TxBuffer = (uint8_t*)chHeapAlloc(NULL, tx_buffer_size); \ + Uart##num##_PAL.TxBuffer = Uart##num##_TxBuffer; \ Uart##num##_PAL.TxRingBuffer.Initi...
out_flowcounter: switch to PRIu64 for 32bit/64bit compat
#include <stdio.h> #include <stdlib.h> +#include <inttypes.h> #include <time.h> #include <fluent-bit/flb_info.h> @@ -108,10 +109,10 @@ static void output_fcount(FILE* f, struct flb_out_fcount_config *ctx, { fprintf(f, "[%s] [%lu, {" - "\"counts\":%lu, " - "\"bytes\":%lu, " - "\"counts/%s\":%lu, " - "\"bytes/%s\":%lu }"...
fix formatting of CMake file
@@ -11,8 +11,7 @@ endif () execute_process ( COMMAND ${Python3_EXECUTABLE} -c "import pip,wheel" RESULT_VARIABLE EXIT_CODE - OUTPUT_QUIET -) + OUTPUT_QUIET) if (NOT EXIT_CODE EQUAL 0) remove_tool (fuse "python3-modules pip and wheel not both available") @@ -24,8 +23,8 @@ install (CODE "execute_process(COMMAND ${Python3...
KDB List-Tools: Support paths containing spaces
# # @tags org -EXEC_PATH=@CMAKE_INSTALL_PREFIX@/@TARGET_TOOL_EXEC_FOLDER@ +EXEC_PATH="@CMAKE_INSTALL_PREFIX@/@TARGET_TOOL_EXEC_FOLDER@" if [ -d "$KDB_EXEC_PATH" ]; then - EXEC_PATH=$KDB_EXEC_PATH + EXEC_PATH="$KDB_EXEC_PATH" fi # list all installed tools echo "External tools are located in $EXEC_PATH" -ls $EXEC_PATH +l...
Fix a bug in test_sslversions The TLSv1.4 tolerance test wasn't testing what we thought it was.
@@ -159,6 +159,7 @@ sub modify_supported_versions_filter } elsif ($testtype == WITH_TLS1_4) { $ext = pack "C5", 0x04, # Length + 0x03, 0x05, #TLSv1.4 0x03, 0x04; #TLSv1.3 } if ($testtype == REVERSE_ORDER_VERSIONS
Experimenting with the price
@@ -11,7 +11,7 @@ presskit_download_link : app_icon : # assets/appicon.png # Automatically populates if not set and if iOS app ID is set. Otherwise enter path to icon file manually. app_name : # Automatically populates if not set and if iOS app ID is set. Otherwise enter manually. -app_price : $4.99 / $11.99 / 3-day Tr...
arch/arm/makefile: linking libraries with GCC should use option -l
@@ -99,13 +99,16 @@ ifeq ($(CONFIG_ARM_TOOLCHAIN_ARMCLANG),) endif LIBPATH_OPT = -L + LIBRARY_OPT = -l SCRIPT_OPT = -T else LIBPATH_OPT = --userlibpath - EXTRA_LIBS += arm_vectors.o + LIBRARY_OPT = --library= SCRIPT_OPT = --scatter= + EXTRA_LIBS += arm_vectors.o endif + LDFLAGS += $(addprefix $(SCRIPT_OPT),$(call CONVE...
luci-app-ssr-plus: fix subscribe bugs about grpc and sni
@@ -192,6 +192,13 @@ local function processData(szType, content) result.read_buffer_size = 2 result.write_buffer_size = 2 end + if info.net == 'grpc' then + if info.path then + result.serviceName = info.path + elseif info.serviceName then + result.serviceName = info.serviceName + end + end if info.net == 'quic' then re...
Change top object to Object instance instead of Object class
@@ -2450,9 +2450,24 @@ void mrbc_vm_begin( struct VM *vm ) } // set self to reg[0] - vm->regs[0].tt = MRBC_TT_CLASS; - vm->regs[0].cls = mrbc_class_object; + // create instance of Object + mrbc_value v; + v.tt = MRBC_TT_OBJECT; + v.instance = (mrbc_instance *)mrbc_alloc(vm, sizeof(mrbc_instance)); + if( v.instance == N...
Set bFirstStep=0 in Evolve loop after first step
@@ -543,6 +543,11 @@ void Evolve(BODY *body,CONTROL *control,FILES *files,MODULE *module,OUTPUT *outp /* Get auxiliary properties for next step -- first call was prior to loop. */ PropertiesAuxiliary(body,control,update); + + // If control->Evolve.bFirstStep hasn't been switched off by now, do so. + if (control->Evolve...
Update README.md restore broken readme
-# TIC-80 API - -Here will api docs - +TIC-80 issue tracker +======= +This is the official issues tracker of <http://tic.computer>. Feel free to open a new issue if you are experiencing a bug or would like to see a new feature. You can either [browse existing issues](https://github.com/nesbox/tic.computer/issues) or [c...
Fixed typos after reviewing
@@ -33,7 +33,7 @@ When done right, contribution brings a lot to a project, but also to the contrib For example, it brings together external visions and skills to build, improve or fix parts of this project. Most of the contributors were first mere users of a project before to become contributors. They often got through...
Remove unused custom event
-#define EVENT_NEW_SESSION SDL_USEREVENT -#define EVENT_NEW_FRAME (SDL_USEREVENT + 1) -#define EVENT_STREAM_STOPPED (SDL_USEREVENT + 2) +#define EVENT_NEW_FRAME SDL_USEREVENT +#define EVENT_STREAM_STOPPED (SDL_USEREVENT + 1)
Add help text to repl line.
(when (and (not *compile-only*) (or *should-repl* *no-file*)) (if-not *quiet* - (print "Janet " janet/version "-" janet/build " " (os/which) "/" (os/arch))) + (print "Janet " janet/version "-" janet/build " " (os/which) "/" (os/arch) " - '(doc)' for help")) (flush) (defn getprompt [p] (def [line] (parser/where p))
fix bug: skipping constructor when txdef contains error
@@ -226,7 +226,7 @@ func (l *luaTxDef) hash() []byte { func (l *luaTxDef) Constructor(args string) *luaTxDef { argsLen := len([]byte(args)) - if argsLen == 0 { + if argsLen == 0 || l.cErr != nil { return l }
sdl: audio: add SDL_DequeueAudio()
@@ -10,6 +10,14 @@ static int SDL_QueueAudio(SDL_AudioDeviceID dev, const void *data, Uint32 len) return -1; } #endif + +#if !(SDL_VERSION_ATLEAST(2,0,5)) +#pragma message("SDL_DequeueAudio is not supported before SDL 2.0.5") +static int SDL_DequeueAudio(SDL_AudioDeviceID dev, const void *data, Uint32 len) +{ + return ...
Fix stray semicolon
@@ -1754,7 +1754,7 @@ TEST( Full_TCP, AFQP_SOCKETS_Socket_InvalidInputParams ) * number of sockets can be created concurrently. */ #ifdef integrationtestportableMAX_NUM_UNSECURE_SOCKETS - #define MAX_NUM_SOCKETS integrationtestportableMAX_NUM_UNSECURE_SOCKETS; + #define MAX_NUM_SOCKETS integrationtestportableMAX_NUM_UN...
perf(non-null judgment): add non-null judgment of "output_ptr->field_ptr" in in hlfabricDiscoveryPayloadPacked()
@@ -450,6 +450,10 @@ __BOATSTATIC BOAT_RESULT hlfabricDiscoveryPayloadPacked(BoatHlfabricTx *tx_ptr, output_ptr->field_len = packedLength; output_ptr->field_ptr = BoatMalloc(packedLength); + if(output_ptr->field_ptr == NULL){ + BoatLog(BOAT_LOG_CRITICAL, "Fail to allocate output_ptr->field_ptr buffer."); + boat_throw(B...
Workaround: AmigaOS4's W3D Nova doesn't support SPIR-V OpImageSampleProjImplicitLod, therefore OGLES2 cannot handle texture2Dproj here for now.
@@ -22,11 +22,19 @@ static int comments = 1; #define ShadAppend(S) shad = Append(shad, &shad_cap, S) +#ifdef AMIGA +// 2D Rectangle 3D CubeMap Stream +const char* texvecsize[] = {"vec2", "vec2", "vec2", "vec3", "vec2"}; +const char* texxyzsize[] = {"st", "st", "st", "stp", "st"}; +// 2D Rectangle 3D CubeMap Stream +con...
mac_address_t: size to 6 bytes so it represents wire format
@@ -23,17 +23,23 @@ typedef struct mac_address_t_ union { u8 bytes[6]; - u64 as_u64; + struct + { + u32 first_4; + u16 last_2; + } __clib_packed u; }; } mac_address_t; +STATIC_ASSERT ((sizeof (mac_address_t) == 6), + "MAC address must represent the on wire format"); + extern const mac_address_t ZERO_MAC_ADDRESS; static...
fix drag to other monitor
@@ -2183,7 +2183,7 @@ movemouse(const Arg *arg) ev.xmotion.x_root > selmon->mx + selmon->mw || ev.xmotion.y_root < selmon->my || ev.xmotion.y_root > selmon->my + selmon->mh) { - if ((m = recttomon(c->x, c->y, c->w, c->h)) != selmon) { + if ((m = recttomon(ev.xmotion.x_root, ev.xmotion.y_root, 2, 2)) != selmon) { XRaise...
Add cxa_throw_hook
@@ -776,6 +776,9 @@ static void throw_exception(__cxa_exception *ex) report_failure(err, ex); } +typedef void (*cxa_throw_hook_t)(void*, std::type_info*, void(*)(void*)) noexcept; + +__attribute__((weak)) cxa_throw_hook_t cxa_throw_hook = nullptr; /** * ABI function for throwing an exception. Takes the object to be thr...
libhfuzz/instrument: don't add 1 byte values to the dynamic dictionary
@@ -238,7 +238,7 @@ static inline bool instrumentLimitEvery(uint64_t step) { } static inline void instrumentAddConstMemInternal(const void* mem, size_t len) { - if (len == 0) { + if (len <= 1) { return; } if (len > sizeof(globalCmpFeedback->valArr[0].val)) {
Mesh:setVertexMap accepts a Blob for fast updates;
@@ -203,6 +203,14 @@ int l_lovrMeshSetVertexMap(lua_State* L) { return 0; } + if (lua_type(L, 2) == LUA_TUSERDATA) { + Blob* blob = luax_checktypeof(L, 2, Blob); + size_t size = luaL_optinteger(L, 3, 4); + lovrAssert(size == 2 || size == 4, "Size of Mesh indices should be 2 bytes or 4 bytes"); + uint32_t count = blob->...
docs - gpcopy add --parallelize-leaf-partitions option * docs - gpcopy add --parallelize-leaf-partitions option Will be backported to 5X_STABLE * docs - gpcopy supports copying leaf partitions of a partitioned table. * docs - gpcopy fix typos.
[<b>--exclude-table-file</b> <varname>table-file1</varname>] [ <b>--exclude-table-file</b> <varname>table-file2</varname>] ... ]] [<b>--skip-existing</b> | <b>--truncate</b> | <b>--drop</b> | <b>--append</b> ] + [<b>--parallelize-leaf-partitions</b>] [<b>--dry-run</b>] [<b>--analyze</b>] [<b>--validate</b> <varname>typ...
Fix path copy error and add more logs. Since we didn't copy the null terminator to temp_filepath, dirname could return the wrong result.
@@ -226,7 +226,7 @@ int checkSingleAof(char *aof_filename, char *aof_filepath, int last_file, int fi FILE *fp = fopen(aof_filepath, "r+"); if (fp == NULL) { - printf("Cannot open file: %s, aborting...\n", aof_filename); + printf("Cannot open file %s: %s, aborting...\n", aof_filepath, strerror(errno)); exit(1); } @@ -33...
Re-enable properties test the issue was fixed but the test was not re-enabled
@@ -61,7 +61,6 @@ public class OCResourceTest { public void testProperties(){ OCResource r = new OCResource(); assertNotNull(r); - fail("Not properly implemented\nsetProperties implementation crashes VM"); r.setProperties((OCResourcePropertiesMask.OC_DISCOVERABLE | OCResourcePropertiesMask.OC_OBSERVABLE)); assertTrue((...
Toyota safety: fixed rounding logic
@@ -40,11 +40,13 @@ static void toyota_rx_hook(CAN_FIFOMailBox_TypeDef *to_push) { // scale by dbc_factor torque_meas_new = (torque_meas_new * toyota_dbc_eps_torque_factor) / 100; - // increase torque_meas by 1 to be conservative on rounding - torque_meas_new += (torque_meas_new > 0 ? 1 : -1); - // update array of samp...
[kernel] fix a const error with g++ 5.4.0 in
@@ -452,10 +452,10 @@ struct UpdateShapeVisitor : public SiconosVisitor void SiconosBulletCollisionManager_impl::updateAllShapesForDS(const BodyDS &bds) { - SP::UpdateShapeVisitor updateShapeVisitor(std11::make_shared<UpdateShapeVisitor>(*this)); + UpdateShapeVisitor updateShapeVisitor(*this); std::vector<std11::shared...
Document Windows command line usage PR <https://github.com/Genymobile/scrcpy/pull/1973>
@@ -199,3 +199,36 @@ scrcpy -m 1920 scrcpy -m 1024 scrcpy -m 800 ``` + + +## Command line on Windows + +Some Windows users are not familiar with the command line. Here is how to open a +terminal and run `scrcpy` with arguments: + + 1. Press <kbd>Windows</kbd>+<kbd>r</kbd>, this opens a dialog box. + 2. Type `cmd` and p...
Update TransmissionPolicyManager.cpp Spelling
@@ -147,7 +147,7 @@ namespace ARIASDK_NS_BEGIN { LOCKGUARD(m_scheduledUploadMutex); if ((m_isPaused) || (m_scheduledUploadAborted)) { - LOG_TRACE("Paused, not uploading anything until resumed"); + LOG_TRACE("Paused or upload aborted: cancel pending upload task."); cancelUploadTask(); // If there is a pending upload tas...
Avoid compiler complaining initialize some local variables
@@ -790,11 +790,11 @@ EXT_RETURN tls_construct_ctos_psk(SSL *s, WPACKET *pkt, unsigned int context, X509 *x, size_t chainidx, int *al) { #ifndef OPENSSL_NO_TLS1_3 - uint32_t now, agesec, agems; - size_t reshashsize, pskhashsize, binderoffset, msglen, idlen; + uint32_t now, agesec, agems = 0; + size_t reshashsize = 0, p...
add power-of-two check to posix_memalign, pr
@@ -136,6 +136,7 @@ int posix_memalign(void** p, size_t alignment, size_t size) { // The spec also dictates we should not modify `*p` on an error. (issue#27) // <http://man7.org/linux/man-pages/man3/posix_memalign.3.html> if (alignment % sizeof(void*) != 0) return EINVAL; // no `p==NULL` check as it is declared as non-...
Fix default process properties window theme
@@ -174,6 +174,7 @@ INT CALLBACK PhpPropSheetProc( PhSetWindowContext(hwndDlg, 0xF, propSheetContext); SetWindowLongPtr(hwndDlg, GWLP_WNDPROC, (LONG_PTR)PhpPropSheetWndProc); + if (PhEnableThemeSupport) // NOTE: Required for compatibility. (dmex) PhInitializeWindowTheme(hwndDlg, PhEnableThemeSupport); PhRegisterWindowC...
perf-tools/tau: update patch to work with fuzz factor=0 for latest release
---- a/plugins/testplugins/Makefile 2017-11-06 18:05:39.000000000 -0800 -+++ b/plugins/testplugins/Makefile 2018-05-16 15:30:48.000000000 -0700 +--- plugins/testplugins/Makefile.orig 2019-04-28 07:15:43.000000000 -0500 ++++ plugins/testplugins/Makefile 2019-05-22 16:12:33.000000000 -0500 CFLAGS = $(TAU_MPI_COMPILE_INCL...
examples/sntp: Document that SNTP-over-DHCP resets other NTP servers Closes
@@ -22,7 +22,7 @@ See `initialize_sntp` function for details. ## Obtaining time using LwIP SNTP-over-DHCP module -NTP server addresses could be automatically aquired via DHCP server option 42. This could be usefull on closed environments where public NTPs are not accessible +NTP server addresses could be automatically ...
vcl: fix nonblocking accept with >1 event in the queue We discard unwanted events until we get an ACCEPTED. But if we are non-blocking we need to check the queue length every time and EAGAIN if empty before waiting. Type: fix
@@ -1464,11 +1464,11 @@ vppcom_session_accept (uint32_t listen_session_handle, vppcom_endpt_t * ep, is_nonblocking = VCL_SESS_ATTR_TEST (listen_session->attr, VCL_SESS_ATTR_NONBLOCK); + while (1) + { if (svm_msg_q_is_empty (wrk->app_event_queue) && is_nonblocking) return VPPCOM_EAGAIN; - while (1) - { if (svm_msg_q_sub...
board/jinlon/thermal.c: Format with clang-format BRANCH=none TEST=none
@@ -141,8 +141,7 @@ static const struct fan_step fan_table_tablet[] = { #define NUM_FAN_LEVELS ARRAY_SIZE(fan_table_clamshell) -BUILD_ASSERT(ARRAY_SIZE(fan_table_clamshell) == - ARRAY_SIZE(fan_table_tablet)); +BUILD_ASSERT(ARRAY_SIZE(fan_table_clamshell) == ARRAY_SIZE(fan_table_tablet)); int fan_table_to_rpm(int fan, i...
lib: monkey: sync changes provided in
@@ -237,6 +237,9 @@ static int mk_rconf_read(struct mk_rconf *conf, const char *path) buf[--len] = 0; } } + else { + mk_config_error(path, line, "Length of content has execeded limit"); + } /* Line number */ line++;
[numerics] correct typos in users message
@@ -3039,7 +3039,7 @@ int NM_LU_factorize(NumericsMatrix* A, unsigned keep) p->dWork = (double*) malloc(A->size1 * sizeof(double)); p->dWorkSize = A->size1; CSparseMatrix_factors* cs_lu_A = (CSparseMatrix_factors*) malloc(sizeof(CSparseMatrix_factors)); - numerics_printf_verbose(2,"NM_LU_factorize,, we compute factors ...
OpenCanopy: Improve ScrollSelected bounds checking
@@ -229,7 +229,12 @@ InternelBootPickerScrollSelected ( INT64 EntryOffsetX; UINT32 EntryWidth; - if (mBootPicker.Hdr.Obj.NumChildren == 1) { + ASSERT (mBootPicker.SelectedIndex < mBootPicker.Hdr.Obj.NumChildren); + + // + // No scroll required if nothing off screen + // + if (mBootPicker.Hdr.Obj.Width <= mBootPickerCon...
Added malloc / free so they forward to MEM_alloc / MEM_free
} +#if (ENABLE_NEWLIB == 0) +// enable standard libc compatibility +#define malloc(x) MEM_alloc(x) +#define free(x) MEM_free(x) +#endif // ENABLE_NEWLIB + + /** * \brief * Return available memory in bytes
Fix a bug in function pipe_rx GCC 7 found this issue with a compiling warning, and this bug has been confirmed by module owner.
@@ -390,7 +390,7 @@ pipe_rx (vlib_main_t * vm, vlib_validate_buffer_enqueue_x2 (vm, node, next_index, to_next, n_left_to_next, - bi0, bi1, next0, next0); + bi0, bi1, next0, next1); } while (n_left_from > 0 && n_left_to_next > 0) {
win: fix build error and comment style
@@ -153,15 +153,15 @@ TEST_IMPL(GLM_PREFIX, quat_copy) { TEST_IMPL(GLM_PREFIX, quat_from_vecs) { versor q1, q2, q3, q4, q5, q6, q7; - vec3 v1 = {1.f, 0.f, 0.f}, v2 = {1.f, 0.f, 0.f}; // parallel - vec3 v3 = {0.f, 1.f, 0.f}, v4 = {1.f, 0.f, 0.f}; // perpendicular - vec3 v5 = {0.f, 0.f, 1.f}, v6 = {0.f, 0.f, -1.f}; // st...
Fix ignored files list.
Makedefs autom4te.cache /config.h -config.log -config.status -cups/libcups.a -cups/org.pwg.ippsample.* -cups/test.raster -cups/testarray -cups/testclient -cups/testdest -cups/testfile -cups/testhttp -cups/testi18n -cups/testipp -cups/testoptions -cups/testraster -data -man/mantohtml -examples/pwg-raster-samples* -parts...
Added a reference in readme Just in case someone wants to finish the port for poser_octavioradii.c
@@ -115,7 +115,7 @@ Component Type | Component | Description | Authors Poser | [poser_charlesslow.c](src/poser_charlesslow.c) | A very slow, but exhaustive poser system. Calibration only. | [@cnlohr](https://github.com/cnlohr) Poser | [poser_daveortho.c](src/poser_daveortho.c) | A very fast system using orthograpic vie...
links: remove stray semicolon
@@ -82,7 +82,7 @@ class LinkWindow extends Component<LinkWindowProps, {}> { } return ( <Box ref={ref}> - <LinkItem key={index.toString()} {...linkProps} />; + <LinkItem key={index.toString()} {...linkProps} /> </Box> ); });
libhfuzz/instrument: allow for more constdict values with cmp4 and with cmp8
@@ -313,14 +313,14 @@ void __sanitizer_cov_trace_cmp2(uint16_t Arg1, uint16_t Arg2) { void __sanitizer_cov_trace_cmp4(uint32_t Arg1, uint32_t Arg2) { /* Add 4byte values to the const_dictionary if they exist within the binary */ if (cmpFeedback && instrumentLimitEvery(4095)) { - if (Arg1 > 0xffff && Arg1 < 0xffff0000) ...
Bump CCP to 4.0.1.1 for bug fix
@@ -269,7 +269,7 @@ resources: branch: {{ccp-git-branch}} private_key: {{ccp-git-key}} uri: {{ccp-git-remote}} - tag_filter: 1.0.4 + tag_filter: 1.0.4.1 - name: terraform type: terraform
[util/string] Some more cleanup in split iterator.
// Provides convenient way to split strings. // Check iterator_ut.cpp to get examples of usage. -namespace NStringSplitterContainerConsumer { +namespace NPrivate { template <class Container> struct TContainerConsumer { using value_type = typename Container::value_type; @@ -22,20 +22,20 @@ namespace NStringSplitterConta...
vere: patch version bump (v0.10.3) [ci skip]
set -e -URBIT_VERSION="0.10.1" +URBIT_VERSION="0.10.3" deps=" \ curl gmp sigsegv argon2 ed25519 ent h2o scrypt sni uv murmur3 secp256k1 \
Change arg to cms_CompressedData_init_bio to be const The argument to this function is declared const in the header file. However the implementation did not have this. This issue is only visible when using enable-zlib.
@@ -60,7 +60,7 @@ CMS_ContentInfo *cms_CompressedData_create(int comp_nid) return NULL; } -BIO *cms_CompressedData_init_bio(CMS_ContentInfo *cms) +BIO *cms_CompressedData_init_bio(const CMS_ContentInfo *cms) { CMS_CompressedData *cd; const ASN1_OBJECT *compoid;
stm32/boards/NUCLEO_WB55: Add more CPU pins and aliases to SW1/2/3.
,PA5 ,PA6 ,PA7 +,PA8 +,PA9 +,PA10 +,PA11 +,PA12 +,PA13 +,PA14 +,PA15 ,PB0 ,PB1 ,PB2 ,PC1 ,PC2 ,PC3 +,PC4 +,PC5 +,PC6 +,PC10 +,PC11 +,PC12 +,PC13 +,PD0 +,PD1 +,PE4 SW,PC4 +SW1,PC4 +SW2,PD0 +SW3,PD1 LED_GREEN,PB0 LED_RED,PB1 LED_BLUE,PB5
Sockeye TN: Start updating checks section
@@ -363,7 +363,7 @@ All declared input ports must have a corresponding node declaration in the modul When a module is instantiated a list of port mappings can be specified. An input port mapping creates a node outside the module that overlays the node inside the module. An output port mapping creates a node inside the ...
fix(fabric test): add fabric test case "TxInvokeFail_Args_Lack2"
@@ -449,6 +449,35 @@ START_TEST(test_002Transaction_0019TxInvokeFail_Args_Lack1) } END_TEST +START_TEST(test_002Transaction_0020TxInvokeFail_Args_Lack2) +{ + BSINT32 rtnVal; + BoatHlfabricTx tx_ptr; + BoatHlfabricWallet *g_fabric_wallet_ptr = NULL; + BoatHlfabricWalletConfig wallet_config = get_fabric_wallet_settings()...
Do not call SDL_Quit() It may crash in i965_dri.so when calling SDL_Quit (probably a driver bug). To avoid a segmentation fault, do not call SDL_Quit().
@@ -297,7 +297,9 @@ SDL_bool show_screen(const char *serial, Uint16 local_port) { ret = SDL_FALSE; goto screen_finally_stop_decoder; } - atexit(SDL_Quit); + // FIXME it may crash in SDL_Quit in i965_dri.so + // As a workaround, do not call SDL_Quit() (we are exiting anyway). + // atexit(SDL_Quit); // Bilinear resizing ...
server: scheduler: new helpers to cleanup threads
@@ -64,8 +64,9 @@ static inline int _next_target(struct mk_server *server) cur = (ctx->workers[0].accepted_connections - ctx->workers[0].closed_connections); - if (cur == 0) + if (cur == 0) { return 0; + } /* Finds the lowest load worker */ for (i = 1; i < server->workers; i++) { @@ -474,6 +475,7 @@ int mk_sched_init(s...
README: add youtube links
@@ -16,6 +16,12 @@ Flight Controller Firmware QUICKSILVER comes with configuration application for Windows, MacOS and Linux. It's source and pre-compiled binaries can be found [here](https://github.com/BossHobby/Configurator). +## In-Action + +* [Youtube - Tarkusx FPV - DIY Frame](https://www.youtube.com/watch?v=ZXH9Sb...
CCode: Simplify `elektraHexcodeConvFromHex`
*/ static inline int elektraHexcodeConvFromHex (char c) { - if (c == '0') - return 0; - else if (c == '1') - return 1; - else if (c == '2') - return 2; - else if (c == '3') - return 3; - else if (c == '4') - return 4; - else if (c == '5') - return 5; - else if (c == '6') - return 6; - else if (c == '7') - return 7; - e...
tutorial: update envvars for prod build
@@ -57,11 +57,11 @@ module.exports = { new webpack.DefinePlugin({ 'process.env.LANDSCAPE_STREAM': JSON.stringify(process.env.LANDSCAPE_STREAM), 'process.env.LANDSCAPE_SHORTHASH': JSON.stringify(process.env.LANDSCAPE_SHORTHASH), - 'process.env.TUTORIAL_HOST': JSON.stringify('~hastuc-dibtux'), + 'process.env.TUTORIAL_HOS...
ci: remove esp32h2 from default targets
@@ -300,6 +300,10 @@ class BuildSystem: 'Linux': 'linux', } + # ESP32H2-TODO: IDF-4559 + # Build only apps who has ESP32-H2 in the README.md supported targets table. + DEFAULT_TARGETS = ['esp32', 'esp32s2', 'esp32s3', 'esp32c3', 'esp8684', 'linux'] + @classmethod def build_prepare(cls, build_item): app_path = build_ite...
Fix async bool.
@@ -142,7 +142,7 @@ context_new(struct ub_ctx* ctx, const char* name, int rrtype, int rrclass, } lock_basic_unlock(&ctx->cfglock); q->node.key = &q->querynum; - q->async = (cb != NULL && cb_event != NULL); + q->async = (cb != NULL || cb_event != NULL); q->cb = cb; q->cb_event = cb_event; q->cb_arg = cbarg;
cache: update plugin docu
@@ -31,4 +31,5 @@ Incompatible with storage plugins, which do not always produce the same keyset o concerning the same configuration file. A notable example here is the `ini` plugin (see issue #2592). The cache files are located in the user's home directory below `~/.cache/elektra/` and -shall not be altered, otherwise...
test_spi: fixed redundant quotes in test descriptions
@@ -661,7 +661,7 @@ static const ptest_func_t slave_test_func = { #define TEST_SPI_MASTER_SLAVE(name, param_group, extra_tag) \ PARAM_GROUP_DECLARE(name, param_group) \ - TEST_MASTER_SLAVE(name, param_group, "[spi_ms][test_env=Example_SPI_Multi_device][timeout=120]"#extra_tag, &master_test_func, &slave_test_func) + TES...
doc: PG 13 relnotes: fix uuid item
@@ -1806,7 +1806,7 @@ Author: Peter Eisentraut <peter@eisentraut.org> <para> Previously <acronym>UUID</acronym> generation functions were only - available external modules <xref linkend="uuid-ossp"/> or <xref + available via external modules <xref linkend="uuid-ossp"/> and <xref linkend="pgcrypto"/> were installed. </p...
Add npm script for rerunning cli when engine or compiler is modified
"coverage": "jest --coverage --runInBand || true", "missing-translations": "node src/lang/list_missing.js", "make:cli": "webpack --config webpack.cli.config.js", - "cli": "node out/cli/gb-studio-cli.js" + "cli": "node out/cli/gb-studio-cli.js", + "cli:watch": "sh -c 'PROJECT_FILE=$0; PROJECT_ROOT=$(dirname $PROJECT_FIL...
cmerge: work around enum wrapping in python binding
#include "kdbmerge.h" %} - ckdb::KeySet * elektraMerge (ckdb::KeySet * our, ckdb::Key * ourRoot, ckdb::KeySet * their, ckdb::Key * theirRoot, ckdb::KeySet * base, ckdb::Key * baseRoot, ckdb::Key * resultKey, ckdb::MergeStrategy strategy, ckdb::Key * informationKey); int elektraMergeGetConflicts (ckdb::Key * information...
pybricks/common/ColorLight: use new Color type This simplifies the code a lot, and a separate brightness argument is no longer required.
@@ -36,20 +36,9 @@ STATIC mp_obj_t common_ColorLight_internal_on(size_t n_args, const mp_obj_t *pos // Parse arguments PB_PARSE_ARGS_METHOD(n_args, pos_args, kw_args, common_ColorLight_internal_obj_t, self, - PB_ARG_REQUIRED(color), - PB_ARG_DEFAULT_INT(brightness, 100)); - - if (color_in == mp_const_none) { - color_in...
test: psa_pake: fixes in ecjpake_setup() Both changes concern the ERR_INJECT_UNINITIALIZED_ACCESS case: removed unnecessary psa_pake_abort() added psa_pake_get_implicit_key()
@@ -687,6 +687,7 @@ void ecjpake_setup( int alg_arg, int key_type_pw_arg, int key_usage_pw_arg, unsigned char *output_buffer = NULL; size_t output_len = 0; const uint8_t unsupp_id[] = "abcd"; + psa_key_derivation_operation_t key_derivation; PSA_INIT( ); @@ -713,23 +714,20 @@ void ecjpake_setup( int alg_arg, int key_typ...
driver/ppc/aoz1380.c: Format with clang-format BRANCH=none TEST=none
@@ -157,7 +157,6 @@ const struct ppc_drv aoz1380_drv = { .is_sourcing_vbus = &aoz1380_is_sourcing_vbus, .vbus_sink_enable = &aoz1380_vbus_sink_enable, .vbus_source_enable = &aoz1380_vbus_source_enable, - .set_vbus_source_current_limit = - &aoz1380_set_vbus_source_current_limit, + .set_vbus_source_current_limit = &aoz13...
Fix KPH install check and change KPH driver start to Auto
@@ -91,7 +91,12 @@ NTSTATUS KphConnect2( _In_ PWSTR FileName ) { - return KphConnect2Ex(DeviceName, FileName, NULL); + KPH_PARAMETERS parameters; + + parameters.SecurityLevel = KphSecuritySignatureCheck; + parameters.CreateDynamicConfiguration = TRUE; + + return KphConnect2Ex(DeviceName, FileName, &parameters); } NTSTA...
Added note about resource usage during elaboration to docs On computers with limited resources (like main memory) the elaboration will fail with the message 'make: *** [firrtl_temp] Error 137'. Since no further explaination of the error is given, its meaning should be mentioned in the docs.
@@ -49,6 +49,8 @@ Simulating The Default Example To compile the example design, run ``make`` in the selected verilator or VCS directory. This will elaborate the ``RocketConfig`` in the example project. +.. Note:: The elaboration of ``RocketConfig`` requires about 6.5 GB of main memory. Otherwise the process will fail w...
sim: Write image_ok properly With stricter checking of alignment, always write the image ok flag as a group of 'align' bytes.
@@ -229,7 +229,8 @@ fn try_norevert(flash: &Flash, areadesc: &AreaDesc) -> Flash { assert_eq!(c::boot_go(&mut fl, &areadesc), 0); // Write boot_ok - fl.write(0x040000 - align, &[1]).unwrap(); + let ok = [1u8, 0, 0, 0, 0, 0, 0, 0]; + fl.write(0x040000 - align, &ok[..align]).unwrap(); assert_eq!(c::boot_go(&mut fl, &area...
common/usbc/usb_mode.c: Format with clang-format BRANCH=none TEST=none
@@ -196,22 +196,22 @@ bool enter_usb_cable_is_capable(int port) if (a2_rev30.usb_40_support == USB4_NOT_SUPPORTED) return false; /* - * For VDM version < 2.0 or VDO version < 1.3, do not enter USB4 - * mode if the cable - - * doesn't support modal operation or - * doesn't support Intel SVID or - * doesn't have rounded ...
fix use of protoc for mobile mapkit; add MAPKIT_IDL_INCLUDES helper macro
@@ -150,7 +150,8 @@ XSUBPPFLAGS= ARCH_TOOL=${tool:"tools/archiver"} PROTOC=${tool:"contrib/tools/protoc"} -PROTOC_STYLEGUIDE=${tool:"contrib/tools/protoc/plugins/cpp_styleguide"} +PROTOC_STYLEGUIDE_OUT=--cpp_styleguide_out=$ARCADIA_BUILD_ROOT/$PROTO_NAMESPACE +PROTOC_PLUGIN_STYLEGUIDE=--plugin=protoc-gen-cpp_styleguide...
bare-arm/lib: Re-add dummy strstr() and memchr(). Needed to build Pycopy.
@@ -126,3 +126,13 @@ size_t strlen(const char *s) { } return ss - s; } + +// Dummy functions, used just in a couple of places. + +char *strstr(const char *where, const char *what) { + return NULL; +} + +void *memchr(const void *s, int c, size_t n) { + return NULL; +}
[Cita][#1249]add return value at the endof code
@@ -203,6 +203,7 @@ void BoatCitaWalletDeInit(BoatCitaWallet *wallet_ptr) BOAT_RESULT BoatCitaTxSetQuotaLimit(BoatCitaTx *tx_ptr, BUINT64 quota_limit_value) { + BOAT_RESULT result = BOAT_SUCCESS; if (tx_ptr == NULL) { BoatLog(BOAT_LOG_CRITICAL, "Arguments cannot be NULL."); @@ -211,6 +212,7 @@ BOAT_RESULT BoatCitaTxSet...
idf.py: Add check for new cmake cache values
@@ -150,6 +150,32 @@ def detect_cmake_generator(): raise FatalError("To use %s, either the 'ninja' or 'GNU make' build tool must be available in the PATH" % PROG) +def _strip_quotes(value, regexp=re.compile(r"^\"(.*)\"$|^'(.*)'$|^(.*)$")): + """ + Strip quotes like CMake does during parsing cache entries + """ + + retu...
HV:initialize variables before reference in vmx.c to avoid complains from code static scan tool
@@ -372,7 +372,7 @@ static void init_guest_state(struct vcpu *vcpu) /* Limit */ limit = 0xFFFF; } else if (get_vcpu_mode(vcpu) == PAGE_PROTECTED_MODE) { - descriptor_table gdtb; + descriptor_table gdtb = {0, 0}; /* Base *//* TODO: Should guest GDTB point to host GDTB ? */ /* Obtain the current global descriptor table b...
removed fake test in rb_port_test
@@ -43,13 +43,9 @@ class RbPortTest < Test::Unit::TestCase assert_equal(nil, @@meta.call('say_null')) - # TODO: Solve <nil> return - #assert_equal(12, @@meta.call('say_multiply', 3, 4)) - assert_equal(nil, @@meta.call('say_multiply', 3, 4)) + assert_equal(12, @@meta.call('say_multiply', 3, 4)) - # TODO: Solve <nil> ret...
in_tail: fix leak on exit (CID 184436)
@@ -154,6 +154,7 @@ struct flb_tail_config *flb_tail_config_create(struct flb_input_instance *i_ins, ctx->multiline = FLB_TRUE; ret = flb_tail_mult_create(ctx, i_ins, config); if (ret == -1) { + flb_tail_config_destroy(ctx); return NULL; } } @@ -167,6 +168,7 @@ struct flb_tail_config *flb_tail_config_create(struct flb_...
SOVERSION bump to version 4.2.8
@@ -39,7 +39,7 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_ # with backward compatible change and micro version is connected with any internal change of the library. set(SYSREPO_MAJOR_SOVERSION 4) set(SYSREPO_MINOR_SOVERSION 2) -set(SYSREPO_MICRO_SOVERSION 7) +set(SYSREPO_MICRO_SO...
linux-raspberrypi: Bump 4.19 revision to fix RPi 4 arm64 builds See:
@@ -3,7 +3,7 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/linux-raspberrypi:" LINUX_VERSION ?= "4.19.56" LINUX_RPI_BRANCH ?= "rpi-4.19.y" -SRCREV = "e8a66b4f610b3a20bae8f706256d230135916c26" +SRCREV = "9d1deec93fa8b1b4953ff5e9210349f3c85b9a8d" SRC_URI = " \ git://github.com/raspberrypi/linux.git;protocol=git;branch=${LINU...
Fix typo in firesim initialization in init-submodules-no-riscv-tools.sh
@@ -38,7 +38,7 @@ git config --unset submodule.vlsi/hammer-cadence-plugins.update git config --unset submodule.vlsi/hammer-synopsys-plugins.update git config --unset submodule.vlsi/hammer-mentor-plugins.update -if [ "NO_FIRESIM" = false ]; then +if [ $NO_FIRESIM = false ]; then # Renable firesim and init only the requi...
Update README instructions for ORCA install
@@ -43,8 +43,9 @@ Follow [appropriate linux steps](README.linux.md) for getting your system ready ```bash cd depends -conan remote add conan-gpdb https://api.bintray.com/conan/greenplum-db/gpdb-oss -conan install --build +./configure +make +make install_local cd .. ```
Fix PhGetApplicationIcon for multiple DPI
@@ -2221,17 +2221,30 @@ HICON PhGetApplicationIcon( { static HICON smallIcon = NULL; static HICON largeIcon = NULL; + static LONG systemDpi = 0; - LONG dpiValue; + if (systemDpi != PhGetSystemDpi()) + { + if (smallIcon) + { + DestroyIcon(smallIcon); + smallIcon = NULL; + } + if (largeIcon) + { + DestroyIcon(largeIcon);...
BugID:23379380:Enable esp8266 ap mode to enable device softap Wi-Fi provision
@@ -304,6 +304,9 @@ bool ICACHE_FLASH_ATTR start_wifi_ap(const char * ssid, const char * pass){ if(pass){ sprintf(config.password, pass); } + + config.max_connection = 4; + return wifi_softap_set_config(&config); }